SSI not working apache 2.2.3 CentOS 5.4
Posted: 2010/05/07 16:06:31
I'm having a dickens of a time getting server-side includes to work on Apache 2.2.3 on CentOS. I've taken all the usual steps. It simply does not work. It ignores any include directives. Anyone have any ideas? HEre's the relevant lines from httpd.conf:
[code]
LoadModule include_module modules/mod_include.so
AddHandler cgi-script .cgi
AddHandler server-parsed .shtml
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<VirtualHost *:80>
DocumentRoot /var/sites/www
<Directory "/var/sites/www/cgi-bin">
Options ExecCGI
</Directory>
<Directory "/var/sites/www">
Options Indexes FollowSymLinks ExecCGI Includes
</Directory>
</VirtualHost>
[/code]
SELinux is disabled as shown below:
[root@s1 www]# getsebool -a
getsebool: SELinux is disabled
[Moderator edited to insert [i]code[/i] tags to preserve the format.]
[code]
LoadModule include_module modules/mod_include.so
AddHandler cgi-script .cgi
AddHandler server-parsed .shtml
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<VirtualHost *:80>
DocumentRoot /var/sites/www
<Directory "/var/sites/www/cgi-bin">
Options ExecCGI
</Directory>
<Directory "/var/sites/www">
Options Indexes FollowSymLinks ExecCGI Includes
</Directory>
</VirtualHost>
[/code]
SELinux is disabled as shown below:
[root@s1 www]# getsebool -a
getsebool: SELinux is disabled
[Moderator edited to insert [i]code[/i] tags to preserve the format.]