Discussion:
SSI not working after update to Apache 2.4
(too old to reply)
Lewis
2013-08-04 00:08:48 UTC
Permalink
I have a site with the following .htaccess:
Options +ExecCGI +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/x-httpd-cgi .cgi/
AddType application/x-httpd-cgi .pl
AddType application/x-httpd-cgi .pl/
AddType text/css .css

I also have Addtype and AddOutputFilter lines in the httpd.conf, as well as the following block:

<Directory "/usr/local/www">
Options +Indexes +FollowSymLinks +Includes -SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>

and on the index.shtml page I have

<div class=purple>
<!--#include file="menu.inc"-->
</div>

This all worked in apache 2.2 (with AddType text/html .shtml and
AddHandler server-parsed .shtml), but under 24 the menu.inc file is not
loading.

(the content of the site has not changed in 11 years, so this is
definitely something I've missed in the Apache configuration)

Any ideas?
--
C-3PO: We seem to be made to suffer. It's our lot in life.
Lewis
2013-08-04 00:36:24 UTC
Permalink
Post by Lewis
Options +ExecCGI +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/x-httpd-cgi .cgi/
AddType application/x-httpd-cgi .pl
AddType application/x-httpd-cgi .pl/
AddType text/css .css
Also, none of the .pl files are being executed as cgis.
--
I've always had a flair for stage directions.
Continue reading on narkive:
Loading...