Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Apache config
Date: Thu, 18 May 2017 14:49:53
Message-Id: 2947198.upMbdmklf8@peak
1 Hello list,
2
3 Not long ago I was asking for advice on Joomla, then Drupal, to build a new
4 site. Now that's been put on the back burner while I recover the old site
5 from a few years ago and bring it up to date. It was hand-crafted from CSS
6 and HTML.
7
8 While working on the new-old site I'm using my local mini-server, but I
9 can't find out why it's not obeying server-include commands. In the source I
10 have e.g.
11 <!--#include VIRTUAL="/include/hmenu.incl" -->
12
13 Then,
14 $ grep -i include /etc/conf.d/apache2
15 APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D
16 LANGUAGE -D SECURITY -D PHP -D INCLUDE -D PROXY -D STATUS"
17
18 $ sudo cat /etc/apache2/vhosts.d/10_choir-old_vhost.conf
19 <IfDefine DEFAULT_VHOST>
20 Listen 80
21 <VirtualHost *:80>
22 ServerName choir-old
23 Include /etc/apache2/vhosts.d/choir-old_vhost.include
24 <IfModule mpm_peruser_module>
25 ServerEnvironment apache apache
26 </IfModule>
27 </VirtualHost>
28 </IfDefine>
29
30 $ sudo cat /etc/apache2/vhosts.d/choir_vhost.include
31 ServerAdmin webmaster@localhost
32 DocumentRoot "/var/www/localhost/htdocs/choir-old"
33 <Directory "/var/www/localhost/htdocs/choir-old">
34 Options Indexes FollowSymLinks Includes
35 AllowOverride All
36 Require all granted
37 </Directory>
38 <IfModule alias_module>
39 ScriptAlias /cgi-bin/ "/var/www/localhost/cgi-bin/"
40 </IfModule>
41 <Directory "/var/www/localhost/choir/cgi-bin">
42 AllowOverride None
43 Options None
44 Require all granted
45 </Directory>
46
47 The apache2 access log shows the files of the page being fetched, but makes
48 no mention of /include/hmenu.incl, nor of includes at all.
49
50 It's clear I'm missing something, because I did have this working some years
51 ago. Would someone like to put me out of my misery before my head-scratching
52 wears a hole? Please?
53
54 --
55 Regards
56 Peter

Replies

Subject Author
Re: [gentoo-user] Apache config Michael Orlitzky <mjo@g.o>
[gentoo-user] Re: Apache config Ian Zimmerman <itz@×××××××.net>