Can't make SSI includes work

Hi,

I'm NOT using a Mac server, but Apache on Mac OS 10.5.7 Client. But I think I'll get better replies in this forum...dearly hoping I'm not offending anyone or breaking any major rule..

I'm using the local server for web development purposes. After upgrading to OS 10.5, a number of issues have surfaced. I've solved all but one: Can't make SSI includes work.

For SSI, I use the .shtml extension. In the "httpd.config" located in /private/etc/apache2/ I have the following:

<IfModule dir_module>
DirectoryIndex index.html index.shtml index.php
</IfModule>

AddType text/html .shtml
AddHandler server-parsed .shtml
AddOutputFilter includes .shtml

I have also tried using a htaccess file in the local server with the last three lines while having "Override All" in the httpd.config.

The actual tags in the files are OK, as are the paths (they're file relative) as they're working nicely on remote server.

Can someone please help out?

TIA
Dan

G5 1.8Ghz, Mac OS X (10.5.7)

Posted on Jul 30, 2009 11:02 PM

3 replies

Aug 3, 2009 4:54 AM in response to Camelot

Camelot:

Yes, the module loads. It's properly unchecked in httpd.config and I have also checked my php that it's actually running.

Aug 4, 2009 2:48 AM in response to Community User

Problem solved, and of course it's simple.....

I overlooked the file etc/apache2/users/username.conf. In that, the original configuration says:

<Directory "/Users/username/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

I just added " Includes" after "MultiViews", restarted Apache, and it's working like charm!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't make SSI includes work

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.