Enabling Server Side Includes in Apache2.2

--_000_559118BA300F3F45AC547BC9E4FD7D9918C1438B45SKATEadunhe du_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Can anyone help a new user of Apache2.2? I'm trying to enable SSI on the s=
erver but don't seem to
be having much luck. I've looked on google and in the FAQ and put into pla=
ce what seems to be fairly
straightforward edits but it never works. Hoping someone can point me in t=
he right direction.

Here's what I put in my httpd.conf file:

<Directory "/var/www/html">
Options Indexes FollowSymLinks Includes

AllowOverride None

Order allow,deny
Allow from all

AddType text/html .html
AddOutputFilter INCLUDES .html
AddType text/html .htm
AddOutputFilter INCLUDES .htm
</Directory>

I also tried experimenting with the XBitHack directive but it didn't help e=
ither. Beginning to wonder if
my HTML code to include is just not in the right format. It did work when =
I ran this webserver on
Windows 2003 Server but perhaps it's not compatible with Apache/Linux. Her=
e is the line I'm looking
to include:

<!-- #include file=3D"game.htm" -->

I have a bunch of galleries of images in a directory structure in /var/www/=
html. Do you have to define
each and every one in the httpd.conf file? I tried doing that for one gall=
ery but it didn't work either.

Any thoughts? Thanks in advance.

Greg

--_000_559118BA300F3F45AC547BC9E4FD7D9918C1438B45SKATEadunhe du_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Can anyone help a new user of Apache2.2?  I’m
trying to enable SSI on the server but don’t seem to<o:p></o:p></span=
></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>be having much luck.  I’ve looked on google a=
nd in
the FAQ and put into place what seems to be fairly<o:p></o:p></span></font>=
</p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>straightforward edits but it never works.  Hoping
someone can point me in the right direction.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Here’s what I put in my httpd.conf file:<o:p></o:p=
></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><Directory "/var/www/html"><o:p></o:p></=
span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    Options Indexes FollowSymLinks Includ=
es<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    AllowOverride None<o:p></o:p></span><=
/font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    Order allow,deny<o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    Allow from all<o:p></o:p></span></fon=
t></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    AddType text/html .html<o:p></o:p></s=
pan></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    AddOutputFilter INCLUDES .html<o:p></=
o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    AddType text/html .htm<o:p></o:p></sp=
an></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    AddOutputFilter INCLUDES .htm<o:p></o=
:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'></Directory><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>I also tried experimenting with the XBitHack directive b=
ut
it didn’t help either.  Beginning to wonder if<o:p></o:p></span>=
</font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>my HTML code to include is just not in the right
format.  It did work when I ran this webserver on <o:p></o:p></span></=
font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Windows 2003 Server but perhaps it’s not compatibl=
e
with Apache/Linux.  Here is the line I’m looking<o:p></o:p></spa=
n></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>to include:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><!-- #include file=3D"game.htm" --><o:p>=
</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>I have a bunch of galleries of images in a directory
structure in /var/www/html.  Do you have to define<o:p></o:p></span></=
font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>each and every one in the httpd.conf file?  I tried
doing that for one gallery but it didn’t work either.  <o:p></o:=
p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Any thoughts?  Thanks in advance.   <o:p>=
</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Greg<o:p></o:p></span></font></p>

</div>

</body>

</html>

--_000_559118BA300F3F45AC547BC9E4FD7D9918C1438B45SKATEadunhe du_--
gregory.greene [ Do, 17 Dezember 2009 17:52 ] [ ID #2026350 ]

Re: Enabling Server Side Includes in Apache2.2

try this

<IfModule mod_include.c>
<Directory "/var/www/html">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes .html
AddType text/html .shtml
AddType text/html .htm
AddOutputFilter INCLUDES .shtml
AddHandler type-map var
Order allow,deny
Allow from all
</Directory>

On Thu, Dec 17, 2009 at 8:52 AM, Greene, Gregory <gregory.greene [at] unh.edu> w=
rote:
> Can anyone help a new user of Apache2.2?=A0 I=92m trying to enable SSI on=
the
> server but don=92t seem to
>
> be having much luck.=A0 I=92ve looked on google and in the FAQ and put in=
to
> place what seems to be fairly
>
> straightforward edits but it never works.=A0 Hoping someone can point me =
in
> the right direction.
>
>
>
> Here=92s what I put in my httpd.conf file:
>
>
>
> <Directory "/var/www/html">
>
> =A0=A0=A0 Options Indexes FollowSymLinks Includes
>
>
>
> =A0=A0=A0 AllowOverride None
>
>
>
> =A0=A0=A0 Order allow,deny
>
> =A0=A0=A0 Allow from all
>
>
>
> =A0=A0=A0 AddType text/html .html
>
> =A0=A0=A0 AddOutputFilter INCLUDES .html
>
> =A0=A0=A0 AddType text/html .htm
>
> =A0=A0=A0 AddOutputFilter INCLUDES .htm
>
> </Directory>
>
>
>
> I also tried experimenting with the XBitHack directive but it didn=92t he=
lp
> either.=A0 Beginning to wonder if
>
> my HTML code to include is just not in the right format.=A0 It did work w=
hen I
> ran this webserver on
>
> Windows 2003 Server but perhaps it=92s not compatible with Apache/Linux.=
=A0 Here
> is the line I=92m looking
>
> to include:
>
>
>
> <!-- #include file=3D"game.htm" -->
>
>
>
> I have a bunch of galleries of images in a directory structure in
> /var/www/html.=A0 Do you have to define
>
> each and every one in the httpd.conf file?=A0 I tried doing that for one
> gallery but it didn=92t work either.
>
>
>
> Any thoughts?=A0 Thanks in advance.
>
>
>
> Greg



--
Thanks,
Charan

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Charan [ Do, 17 Dezember 2009 18:07 ] [ ID #2026351 ]

Re: Enabling Server Side Includes in Apache2.2

Greene, Gregory wrote:
>
> <Directory "/var/www/html">
>
> Options Indexes FollowSymLinks Includes
>
> AllowOverride None
>
> Order allow,deny
>
> Allow from all
>
> AddType text/html .html
>
> AddOutputFilter INCLUDES .html
>
> AddType text/html .htm
>
> AddOutputFilter INCLUDES .htm
>
> </Directory>
>
> I also tried experimenting with the XBitHack directive but it didn’t
> help either. Beginning to wonder if
>
> my HTML code to include is just not in the right format. It did work
> when I ran this webserver on
>
> Windows 2003 Server but perhaps it’s not compatible with Apache/Linux.
> Here is the line I’m looking
>
> to include:
>
> <!-- #include file="game.htm" -->
>

Make sure all of the following are true:

1. The file that contains the SSI directive actually ends in .htm or
..html (per your config)
2. The file is located under /var/www/html
3. The includes module (include_module) is being loaded in your config.

Try checking your apache error log too to make sure it's not complaining
about anything.

--
Justin Pasher

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Justin Pasher [ Do, 17 Dezember 2009 18:26 ] [ ID #2026353 ]

RE: Enabling Server Side Includes in Apache2.2

I tried what Charan suggested but it didn't work either. In answer to what=
Justin asked, yes, my files that contain the SSI are in either .htm or .ht=
ml. The files are in a subdirectory structure below /var/www/html. Do
I have to specify the absolute directory path in the httpd.conf? I have a=

bunch of gallery directories and that would be a pain to be honest.

The one thing I don't know about is the include_module. This is a Red Hat =
R5 Linux install configured as a webserver. Is the include_module compiled
into Apache by default? The RH install really didn't offer much in the way=

of customizations. One thing I did do was to add these lines around the
<Directory> code in the httpd.conf file. I didn't realize they were needed=
..

<Ifmodule mod_include.c>
</IfModule>

Is there a way for me to tell if that module is enabled. Even with that in
the httpd.conf it still doesn't work.

Greg


>Make sure all of the following are true:
>
>1. The file that contains the SSI directive actually ends in .htm or
>.html (per your config)
>2. The file is located under /var/www/html
>3. The includes module (include_module) is being loaded in your config.
>
>Try checking your apache error log too to make sure it's not complaining
>about anything.
>
>--
>Justin Pasher

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
gregory.greene [ Do, 17 Dezember 2009 18:54 ] [ ID #2026355 ]

Re: Enabling Server Side Includes in Apache2.2

Greene, Gregory wrote:
> I tried what Charan suggested but it didn't work either. In answer to what Justin asked, yes, my files that contain the SSI are in either .htm or .html. The files are in a subdirectory structure below /var/www/html. Do
> I have to specify the absolute directory path in the httpd.conf? I have a
> bunch of gallery directories and that would be a pain to be honest.
>
> The one thing I don't know about is the include_module. This is a Red Hat R5 Linux install configured as a webserver. Is the include_module compiled
> into Apache by default? The RH install really didn't offer much in the way
> of customizations. One thing I did do was to add these lines around the
> <Directory> code in the httpd.conf file. I didn't realize they were needed.
>
> <Ifmodule mod_include.c>
> </IfModule>
>
> Is there a way for me to tell if that module is enabled. Even with that in
> the httpd.conf it still doesn't work.
>

I can't give specifics for httpd under RHEL, but you're looking for a
line that is similar to this:

LoadModule include_module /usr/lib/apache2/modules/mod_include.so

To determine which modules are loaded into the server (both static and
dynamic), run "httpd -M". The <IfModule> directive simply checks to make
sure the module is loaded before attempting to set the directives within it.

Make sure you check your Apache logs too for any errors or notifications.

--
Justin Pasher

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Justin Pasher [ Do, 17 Dezember 2009 19:31 ] [ ID #2026356 ]

RE: Enabling Server Side Includes in Apache2.2

I found the loadmodule line in the httpd.conf file and confirmed that it is=
also listed out using httpd -M. I've got no errors in the logfile. It's =
like it just ignores the include code. I found something on a google searc=
h
about changing the double quotes in the include line to single quotes but
that didn't help. I also used the addhandler directives that were an older
usage but that didn't work either.

Not really sure what's going on. Not much to go on. I would really like t=
o
avoid going back to a Windows server.

Greg

>I can't give specifics for httpd under RHEL, but you're looking for a
>line that is similar to this:
>
>LoadModule include_module /usr/lib/apache2/modules/mod_include.so
>
>To determine which modules are loaded into the server (both static and
>dynamic), run "httpd -M". The <IfModule> directive simply checks to make
>sure the module is loaded before attempting to set the directives within >=
it.
>
>Make sure you check your Apache logs too for any errors or notifications.
>
>--
>Justin Pasher

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
gregory.greene [ Do, 17 Dezember 2009 19:56 ] [ ID #2026358 ]

RE: Enabling Server Side Includes in Apache2.2

--8323329-1049036738-1261077909=:3951
Content-Type: TEXT/PLAIN; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8BIT


> Is there a way for me to tell if that module is enabled. Even with that in
> the httpd.conf it still doesn't work.

Just type /etc/init.d/apache -l to get a list of modules.


iñigo

>
> Greg
>
>
>> Make sure all of the following are true:
>>
>> 1. The file that contains the SSI directive actually ends in .htm or
>> .html (per your config)
>> 2. The file is located under /var/www/html
>> 3. The includes module (include_module) is being loaded in your config.
>>
>> Try checking your apache error log too to make sure it's not complaining
>> about anything.
>>
>> --
>> Justin Pasher
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>

--8323329-1049036738-1261077909=:3951
Content-Type: text/plain; charset=us-ascii


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
--8323329-1049036738-1261077909=:3951--
imedina [ Do, 17 Dezember 2009 20:25 ] [ ID #2026359 ]

RE: Enabling Server Side Includes in Apache2.2

I've been trying different things that I run across on google searches but =
so far nothing seems to work. It seems so simple yet is beyond me right
now. My latest attempt had me adding a wildcard to the path in the directo=
ry line but it didn't help.

Current config:

<IfModule mod_include.c>
<Directory "/var/www/html">
Options Indexes FollowSymLinks IncludesNoExec
AllowOverride None
AddType text/html .html
AddOutputFilter INCLUDES .html
AddType text/html .htm
AddOutputFilter INCLUDES .htm
Order allow,deny
Allow from all
XBitHack on
</Directory>
<Directory "/var/www/html/*">
Options Indexes FollowSymLinks IncludesNoExec
AddType text/html .html
AddOutputFilter INCLUDES .html
AddType text/html .htm
AddOutputFilter INCLUDES .htm
AllowOverride None
Order allow,deny
Allow from all
XBitHack on
</Directory>
</IfModule>

greg


-----Original Message-----
From: Greene, Gregory [mailto:gregory.greene [at] unh.edu]
Sent: Thursday, December 17, 2009 1:57 PM
To: users [at] httpd.apache.org
Subject: RE: [users [at] httpd] Enabling Server Side Includes in Apache2.2

I found the loadmodule line in the httpd.conf file and confirmed that it is=
also listed out using httpd -M. I've got no errors in the logfile. It's =
like it just ignores the include code. I found something on a google searc=
h
about changing the double quotes in the include line to single quotes but
that didn't help. I also used the addhandler directives that were an older
usage but that didn't work either.

Not really sure what's going on. Not much to go on. I would really like t=
o
avoid going back to a Windows server.

Greg

>I can't give specifics for httpd under RHEL, but you're looking for a
>line that is similar to this:
>
>LoadModule include_module /usr/lib/apache2/modules/mod_include.so
>
>To determine which modules are loaded into the server (both static and
>dynamic), run "httpd -M". The <IfModule> directive simply checks to make
>sure the module is loaded before attempting to set the directives within >=
it.
>
>Make sure you check your Apache logs too for any errors or notifications.
>
>--
>Justin Pasher

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
gregory.greene [ Do, 17 Dezember 2009 20:57 ] [ ID #2026361 ]

RE: Enabling Server Side Includes in Apache2.2

Wanted to say thank you to all the people who offered help. I was finally
able to figure it out. It was the space between the <!-- and the # in the
include statement in the htm file that was causing the problem. Apparently
Linux/Apache is much more strict about the formatting then the Windows serv=
er with IIS.

My ultimate httpd.conf really was very simple:

<Directory "/var/www/html">
Options Indexes FollowSymLinks IncludesNoExec
AddType text/html .html .htm
AddOutputFilter INCLUDES .html .htm
AllowOverride None
Order allow,deny
Allow from all
</Directory>

That's all I needed. Now I have to change about 100 files to take out that
space. Urghhh.

Greg


-----Original Message-----
From: Greene, Gregory [mailto:gregory.greene [at] unh.edu]
Sent: Thursday, December 17, 2009 2:57 PM
To: users [at] httpd.apache.org
Subject: RE: [users [at] httpd] Enabling Server Side Includes in Apache2.2

I've been trying different things that I run across on google searches but =
so far nothing seems to work. It seems so simple yet is beyond me right
now. My latest attempt had me adding a wildcard to the path in the directo=
ry line but it didn't help.

Current config:

<IfModule mod_include.c>
<Directory "/var/www/html">
Options Indexes FollowSymLinks IncludesNoExec
AllowOverride None
AddType text/html .html
AddOutputFilter INCLUDES .html
AddType text/html .htm
AddOutputFilter INCLUDES .htm
Order allow,deny
Allow from all
XBitHack on
</Directory>
<Directory "/var/www/html/*">
Options Indexes FollowSymLinks IncludesNoExec
AddType text/html .html
AddOutputFilter INCLUDES .html
AddType text/html .htm
AddOutputFilter INCLUDES .htm
AllowOverride None
Order allow,deny
Allow from all
XBitHack on
</Directory>
</IfModule>

greg


-----Original Message-----
From: Greene, Gregory [mailto:gregory.greene [at] unh.edu]
Sent: Thursday, December 17, 2009 1:57 PM
To: users [at] httpd.apache.org
Subject: RE: [users [at] httpd] Enabling Server Side Includes in Apache2.2

I found the loadmodule line in the httpd.conf file and confirmed that it is=
also listed out using httpd -M. I've got no errors in the logfile. It's =
like it just ignores the include code. I found something on a google searc=
h
about changing the double quotes in the include line to single quotes but
that didn't help. I also used the addhandler directives that were an older
usage but that didn't work either.

Not really sure what's going on. Not much to go on. I would really like t=
o
avoid going back to a Windows server.

Greg

>I can't give specifics for httpd under RHEL, but you're looking for a
>line that is similar to this:
>
>LoadModule include_module /usr/lib/apache2/modules/mod_include.so
>
>To determine which modules are loaded into the server (both static and
>dynamic), run "httpd -M". The <IfModule> directive simply checks to make
>sure the module is loaded before attempting to set the directives within >=
it.
>
>Make sure you check your Apache logs too for any errors or notifications.
>
>--
>Justin Pasher

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
gregory.greene [ Do, 17 Dezember 2009 21:46 ] [ ID #2026363 ]

Re: Enabling Server Side Includes in Apache2.2

On Thu, Dec 17, 2009 at 3:46 PM, Greene, Gregory <gregory.greene [at] unh.edu> wrote:
> Wanted to say thank you to all the people who offered help. I was finally
> able to figure it out. It was the space between the <!-- and the # in the
> include statement in the htm file that was causing the problem. Apparently
> Linux/Apache is much more strict about the formatting then the Windows server with IIS.

Cool. So you changed this: <!-- #include file="game.htm" --> to this:
<!--#include file="game.htm" -->

?

Zach

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Zach Uram [ Sa, 19 Dezember 2009 03:21 ] [ ID #2026549 ]
Webserver » gmane.comp.apache.user » Enabling Server Side Includes in Apache2.2

Vorheriges Thema: Apache intermittent crash - HELP!!!
Nächstes Thema: Adding Virtual Hosts for SSL / 443