LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-14-2007, 01:54 AM   #1
HellesAngel
Member
 
Registered: Jun 2007
Posts: 84

Rep: Reputation: 15
Configuring Apache2 to use Server Side Includes


Hi all,

After much hacking around Apache2 still flatly refuses to do anything with my attempts at SSI, and I have no idea what's wrong. I'm running SuSE Linux 10, and Apache reports its version as Apache/2.0.54.

In /etc/apache2/httpd.conf I have added:
Quote:
Options +Includes

<Directory />
Options +Includes
AddOutputFilter INCLUDES .shtml
</Directory>

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

# And this for good measure too
XBitHack on
I know this ideally shouldn't be here but I'm trying to remove possibilities for error...

Having read the documentation here:
http://httpd.apache.org/docs/2.0/howto/ssi.html
And here:
http://httpd.apache.org/docs/2.0/mod/mod_include.html

The (S)HTML files I'm using have been copied from here: http://learning-html.com/server-side-includes.html

After each change to the Apache server I'm restarting it with
apache2ctl -k restart

But the error log shows:
[Fri Sep 14 08:37:05 2007] [notice] SIGHUP received. Attempting to restart
[Fri Sep 14 08:37:06 2007] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations
[Fri Sep 14 08:37:12 2007] [warn] [client 192.168.0.5] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed


I'm starting to go nuts. What am I doing wrong? Many thanks in advance for any tips.
 
Old 09-14-2007, 02:01 AM   #2
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Rep: Reputation: 31
a google search on the error shows this taken from http://gentoo-wiki.com/Apache2_Install:

Code:
 SSI Not Working

When configuring for SSI (Server Side Includes), an error may occur:

mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed

The problem is that setting Options +Includes in either .htaccess or httpd.conf is overwritten by the additional configuration file as defined at the end of httpd.conf.

Include /etc/apache2/vhosts.d/*.conf

You need to edit this additional configuration file such that

AllowOverride None

Is replaced by

AllowOverride Options
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring the tree structure of a web server with apache2?? AQG Linux - Software 7 06-30-2005 03:47 PM
How do I get my Server Side Includes to work? pmedes Linux - Software 4 11-08-2004 02:25 AM
Problem in configuring w/ X includes icpsvt Linux - Newbie 5 10-13-2004 10:45 AM
How would I dialup using pcmcia 56k? (Includes side question about X configing) GuPH Slackware 12 07-28-2003 12:53 PM
Server Side Includes warlock33 Linux - Software 2 02-13-2003 12:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration