SSI not working in apache root dir

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/...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2003
spacemancw
 
Posts: n/a
Default SSI not working in apache root dir

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
  #2 (permalink)  
Old 11-15-2003
Liam Tuohey
 
Posts: n/a
Default Re: SSI not working in apache root dir

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0