Re: OT: SSI with httpd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux