RE: Server Side Inluces Issue Apache 2.2.3

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

 



Ok let me explain it again 

www.ftc.gov and www.consumer.gov are running on apache version 1.3.31
with server side includes enabled.

www.consumer.gov has a url in its main page pointing to
http://www.ftc.gov/ftc/privacy.htm when clicked on this link while
apache 1.3.31 is running the page appears (which actually loads the page
http://www.ftc.gov/ftc/privacy.shtm). The document root has no such file
called privacy.htm

However the same link does not work (page not found error 404) when
apache 2.2.3 version is running.  Httpd.conf on 2.2.3 is same as 1.3.31
except addition of two lines as  (AddOutputFilter INCLUDES .shtml,
AddOutputFilter INCLUDES .shtm)

Httpd.conf for 1.3.31 was configured as below to enable SSI and work
fine with the below configuration

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.jsp index.shtml index.shtm
</IfModule>


#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/usr/www/ftc">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options FollowSymLinks MultiViews Includes


# Turn on Server side includes
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    AddType text/html .shtm
    AddHandler server-parsed .shtm

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