This is a discussion on SSI not working in apache root dir within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi I am on Mac OS X 10.2.8 Server version: Apache/1.3.27 (Darwin) Server built: 01/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
I am on Mac OS X 10.2.8 Server version: Apache/1.3.27 (Darwin) Server built: 01/15/03 19:22:17 Below is a snippet of my httpd.conf I have made my home directory (/Users/myhome/Sites) the apache root directory It was /Library/Webserver/Documents I have subdirectories ... /Users/myhome/Sites/family/ in which I have web pages that include a SSI header and a footer. I use <!--#include virtual="header.html" --> ... etc for this and of course this directory is served as http://my.server.com/family/ However files serverd from the root directory do not process the SSI The file /Users/myhome/Sites/index.html which is served as http://my.server.com/ does not process the header and footer. If I had the wrong path (which I have checked anyway) I would see "[an error occurred while processing this directive] " ... and I don't. In my conf file I have set it so that .html pages aswell as .shtml are parsed. AddType text/html .shtml AddHandler server-parsed .html .shtml Here is the snippet from my conf file ... #------------------ DocumentRoot "/Users/myhome/Sites" <Directory /> Options FollowSymLinks MultiViews Includes AllowOverride None </Directory> <Directory "/Users/myhome/Sites"> Options FollowSymLinks MultiViews Includes AllowOverride None Order allow,deny Allow from all </Directory> #------------------ anyone know how I can get those Includes working in my root directory? Thanx Roger |
|
|||
|
spacemancw@yahoo.com (spacemancw) wrote in message news:<fbb1f69b.0311130829.5e27a951@posting.google. com>...
> Hi > > I am on Mac OS X 10.2.8 > Server version: Apache/1.3.27 (Darwin) > Server built: 01/15/03 19:22:17 > > Below is a snippet of my httpd.conf > > I have made my home directory (/Users/myhome/Sites) the apache root > directory > It was /Library/Webserver/Documents > > I have subdirectories ... /Users/myhome/Sites/family/ in which I have web > pages that include a SSI header and a footer. > I use <!--#include virtual="header.html" --> ... etc for this > and of course this directory is served as http://my.server.com/family/ > > However files serverd from the root directory do not process the SSI > The file /Users/myhome/Sites/index.html which is served as > http://my.server.com/ does not process the header and footer. If I had > the wrong path (which I have checked anyway) I would see > "[an error occurred while processing this directive] " ... and I > don't. > > In my conf file I have set it so that .html pages aswell as .shtml are > parsed. > > AddType text/html .shtml > AddHandler server-parsed .html .shtml > > Here is the snippet from my conf file ... > > #------------------ > DocumentRoot "/Users/myhome/Sites" > > <Directory /> > Options FollowSymLinks MultiViews Includes > AllowOverride None > </Directory> > > <Directory "/Users/myhome/Sites"> > Options FollowSymLinks MultiViews Includes > AllowOverride None > Order allow,deny > Allow from all > </Directory> > #------------------ > > anyone know how I can get those Includes working in my root directory? > > Thanx > > Roger Roger, I had a similar problem, and I had to specify Options +Includes Give it a try. Liam |
| Thread Tools | |
| Display Modes | |
|
|