JDTurbeville
01-08-2003, 05:38 PM
Got a new server and
http://withthewill.myrmid.com/index.shtml
vs
http://myrmid.com/jturbeville/index.shtml (this is on another box)
Isn't even showing [an error is produced at this directive]
Ideas? I've tried
http://httpd.apache.org/docs/howto/ssi.html
1) Did Options +Includes (global and local)
2) Checked for paths
3) Checked MIME types and parsing types
to no avail. Is there something I'm missing? I'm using the shell and webmin to control my server.
jt
It looks like SSI's are not configured properly. It's not even attempting to parse the include. Do you have the following directives in yout httpd.conf?
AddType text/html .shtml
AddHandler server-parsed .shtml
Regards,
Charlie
JDTurbeville
01-08-2003, 10:49 PM
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
#AddHandler cgi-script .cgi
#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml
Someone told me also to add
AddType text/html .html
AddHandler server-parsed .html
below that ... didn't work either :(
jt
Originally posted by JDTurbeville
Someone told me also to add
AddType text/html .html
AddHandler server-parsed .html
I wouldn't do that unless you intend to use SSI in all of your html files. Apache will parse every html file. That will slow down all your static html pages and depending on your traffic, it could add a lot of uneeded overhead to your server.
Other than that,SSI's really should be working with your config. Have you tried contacting your server support yet?
~Charlie
JDTurbeville
01-08-2003, 11:42 PM
The defaults on a RH server should have .shtml files parse their directives anyway, right?
I sent an email to United.Colo though I don't think they will answer since it's an unmanaged server. Worth a try though :)
jt
I'm not sure what the default in on RH. I've always downloaded and compiled my own Apache. Try throwing in an ExecCGI just to see what happens:
Options ExecCGI Includes
It shouldn't matter for includes but it's worth a try. Dumb question but you did restart Apache after making the changes, correct?
~Charlie
JDTurbeville
01-09-2003, 12:26 AM
Yeah, I use "httpd restart" and "service httpd restart" when I restart Apache to update the changes.
Here's the Apache set of directives for the site in question:
DocumentRoot /home/user/wtw.myrmid.com
ServerName wtw.myrmid.com
ServerAlias www.wtw.myrmid.com withthewill.myrmid.com www.withthewill.myrmid.com
Options +Indexes +Includes ExecCGI MultiViews
I also tried those without the + enabled and that didn't work. Is this a faulty setup or server? :confused:
jt
PS - Chas, if you have AIM, ICQ, YIM, etc, I'd love to talk to you tomorrow!
Sure, you can contact me on ICQ tomorrow. I'll PM you with the number.
~Charlie
Website Rob
01-09-2003, 01:42 AM
Keep this in your httpd.conf
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
#AddHandler cgi-script .cgi
#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml
---
Someone told me also to add < they told you incorrectly, remove it from httpd.conf
AddType text/html .html
AddHandler server-parsed .html
---
In the Document Root of the account you want to set this up for, create an .htaccess file and make this the first line:
AddHandler server-parsed html
That's it. You'll notice there is no "dot" before the "html" which was part of the problem. The "dot" is required within the httpd.conf file -- but are not used in an .htaccess file, in this case anyway. ;)