Guest SDMF Posted March 6, 2003 Report Share Posted March 6, 2003 I have apache installed and working, but for some reason SSIs are not being parsed. These are the only changes I made from the default httpd.conf: added this below the Directory entry for "/" <Directory /home/httpd/htdocs> # DocumentRoot Options Includes -Indexes AllowOverride None </Directory> uncommented these lines already written into httpd.conf: AddType text/html .shtml AddHandler server-parsed .shtml the file I am including the ssi file in is a .shtml file, and I am using this format for the include: <!--#include file="relative/path/to/file"--> I checked the attributes, all the directories are 755, and all text files and images are 644, so it doesn't appear that it can't stat the files. Quote Link to comment Share on other sites More sharing options...
paul Posted March 6, 2003 Report Share Posted March 6, 2003 I think you should comment out the Addtype and AddHandler for SSI because Mandrake uses mod_ssi doesn't it? therefore its a *part* of apache already ... I think ... or maybe I'm full of crap :? :P Quote Link to comment Share on other sites More sharing options...
Guest SDMF Posted March 7, 2003 Report Share Posted March 7, 2003 Commented it out. Incidentally, there is nothing about mod_ssi in the httpd.conf file, is there something I need to add to enable it? Quote Link to comment Share on other sites More sharing options...
paul Posted March 7, 2003 Report Share Posted March 7, 2003 yes .. on further inspection .. this is what I have # To use server-parsed HTML files # AddType text/html .shtml AddHandler server-parsed .shtml and this <Directory /var/www/html/loudas.com> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> and it works fine Quote Link to comment Share on other sites More sharing options...
Guest SDMF Posted March 7, 2003 Report Share Posted March 7, 2003 Ya know what, I'm a dumbass :) I had manually put in a <Directory> section in there, right below the one for "/", and I didn't realize that there was already one there for that directory, right below it. There were so many comments that they just looked like individual statements at first glance. At any rate, the entry that was already there did not have the Includes option enabled, and since it was right below the one I put in, it overrode it. It's all working now, thanks. Quote Link to comment Share on other sites More sharing options...
Guest SDMF Posted March 7, 2003 Report Share Posted March 7, 2003 I've added myelf to group apache, I thought that would give me access to /home/httpd/htdocs. Is there some other way I should be granting myslef access, or is it bad practice to give anyone other that root access to the DocumentRoot directory? Quote Link to comment Share on other sites More sharing options...
paul Posted March 7, 2003 Report Share Posted March 7, 2003 I chown paul.paul /var/www/html and it seems fine so long as you are careful with your chmod'ing generally I chmod 755 everything that is in the documentroot Quote Link to comment Share on other sites More sharing options...
Guest SDMF Posted March 7, 2003 Report Share Posted March 7, 2003 what is the paul.paul in the chown statement, doesn't seem to match anything in the man page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.