OT: SSI with httpd
Mike Wright
mike.wright at mailinator.com
Tue May 27 17:40:21 UTC 2008
James Pifer wrote:
> I'm trying to get server side includes working with httpd. I have this
> in the conf file:
>
> LoadModule include_module modules/mod_include.so
>
> #
> # This should be changed to whatever you set DocumentRoot to.
> #
> <Directory /var/www/html>
> Options Indexes FollowSymLinks Includes
> AllowOverride None
> Order allow,deny
> Allow from all
AddHandler server-parsed .html
</Directory>
>
> I've restarted httpd and it restarts fine. When I try to add an SSI to a
> page it doesn't work. If I look at the page source I can see the include
> in the source, which I read means that the httpd server is not properly
> setup for SSI.
>
> Here's a simple page I'm trying:
>
> <html>
> <head>
> <title>Welcome</title>
> </head>
> <body>
> <!--#include FILE="include.inc" -->
> This would be a Welcome page.
>
> <!--#config timefmt="%A %B %d, %Y" -->
> Today is<!--#echo var="DATE_LOCAL" -->
> </body>
> </html>
>
>
> include.inc exists in the same directory as this file. Can anyone tell
> me what I might be missing here?
>
> Thanks,
> James
>
More information about the fedora-list
mailing list