RE: Enabling Server Side Includes in Apache2.2

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

 



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.

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@xxxxxxx] 
Sent: Thursday, December 17, 2009 2:57 PM
To: users@xxxxxxxxxxxxxxxx
Subject: 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 directory 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@xxxxxxx] 
Sent: Thursday, December 17, 2009 1:57 PM
To: users@xxxxxxxxxxxxxxxx
Subject: 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 search
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 to 
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux