Gentoo Archives: gentoo-user

From: Michael Orlitzky <mjo@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Apache config
Date: Thu, 18 May 2017 16:06:25
Message-Id: cefe0d63-cad4-f0c4-7648-d99c53dc6de8@gentoo.org
In Reply to: [gentoo-user] Apache config by Peter Humphrey
1 On 05/18/2017 10:49 AM, Peter Humphrey wrote:
2 >
3 > While working on the new-old site I'm using my local mini-server, but I
4 > can't find out why it's not obeying server-include commands. In the source I
5 > have e.g.
6 > <!--#include VIRTUAL="/include/hmenu.incl" -->
7 >
8 > ...
9 >
10 > <Directory "/var/www/localhost/htdocs/choir-old">
11 > Options Indexes FollowSymLinks Includes
12 > AllowOverride All
13 > Require all granted
14 > </Directory>
15
16 You've got "Includes" in the Options list, so you're halfway there. The
17 missing piece is to add e.g.
18
19 AddOutputFilter INCLUDES .shtml
20
21 as found (commented-out) in our 00_mod_mime.conf. If you want
22 server-side includes for other extensions, add change "shtml" to suit.