SSI on Apache

laguila

http://www.5th-Sun.com/
In the file /etc/http/http.conf I have made the following 2 modifications:

1) Changed:
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

To:
<Directory />
Options FollowSymLinks Includes
AllowOverride None
</Directory>


2) I have un-commented the following 2 lines:
AddType text/html .shtml
AddHandler server-parsed .shtml

I re-started Apache and it's still not processing the SSI directives on .shtml files. What am I missing? Any help would be most welcome!
 

tieng

Registered
In httpd.conf, just after you set the document root, add "Includes" to the line where you set the options. Worked for me.

If you could figure out how to get directory autoindexing working, that would be great. It's driving me nuts.
 

jimr

McInstigator

"[=<"
[Directory "/Library/WebServer/Documents/specialfiles"]
Options Indexes FollowSymLinks MultiViews +includes
Order allow,deny
Allow from all
[/Directory]
 

tieng

Registered
Along with the above suggestion, I had to uncomment the server name line, in /etc/httpd.conf and put my IP address there instead; solved the problem and now works like a charm.
 

tazmandevil

Registered
i have the same problem. It does not work. My System is X.1.3, 256MB Ram, iMacDV 500 and Language: German....

does no one know, how to config that? *stunning*
 

laguila

http://www.5th-Sun.com/
If you're having problems getting SSI's to work on pages in the "Sites" folder in your home directory, then try adding the "Includes" directive to the file with your username in the /etc/httpd/users/ directory.

In other words, if your username is jsmith and your SSI files are in /Users/jsmith/Sites/, then change the jsmith.conf file in /etc/httpd/users/ from:

&lt; Directory &quot;/Users/jsmith/Sites/&quot;&gt;
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
&lt;/Directory&gt;

to

&lt;Directory &quot;/Users/jsmith/Sites/&quot;&gt;
Options Indexes MultiViews Includes
AllowOverride None
Order allow,deny
Allow from all
&lt;/Directory&gt;

That worked for me! (It seems obvious enough now that that should have been the solution but then, computer problems always seem easier in hindsight! :) ).

Good luck!
 

tazmandevil

Registered
oh, :)... thanks a lot!!!!
i'm an idiot... i've forgot, that i configured it for $users like you!... *lol*...
Now..... it finaly works great! :)....
muuuchaaas graaaciaaas :D
 
Top