Re: Enabling Server Side Includes in Apache2.2

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

 



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@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