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
Hello list,

Not long ago I was asking for advice on Joomla, then Drupal, to build a new 
site. Now that's been put on the back burner while I recover the old site 
from a few years ago and bring it up to date. It was hand-crafted from CSS 
and HTML.

While working on the new-old site I'm using my local mini-server, but I 
can't find out why it's not obeying server-include commands. In the source I 
have e.g.
	<!--#include VIRTUAL="/include/hmenu.incl" -->

Then, 
$ grep -i include /etc/conf.d/apache2
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D 
LANGUAGE -D SECURITY -D PHP -D INCLUDE -D PROXY -D STATUS"

$ sudo cat /etc/apache2/vhosts.d/10_choir-old_vhost.conf
<IfDefine DEFAULT_VHOST>
Listen 80
<VirtualHost *:80>
        ServerName choir-old
        Include /etc/apache2/vhosts.d/choir-old_vhost.include
        <IfModule mpm_peruser_module>
                ServerEnvironment apache apache
        </IfModule>
</VirtualHost>
</IfDefine>

$ sudo cat /etc/apache2/vhosts.d/choir_vhost.include
ServerAdmin webmaster@localhost
DocumentRoot "/var/www/localhost/htdocs/choir-old"
<Directory "/var/www/localhost/htdocs/choir-old">
        Options Indexes FollowSymLinks Includes
        AllowOverride All
        Require all granted
</Directory>
<IfModule alias_module>
        ScriptAlias /cgi-bin/ "/var/www/localhost/cgi-bin/"
</IfModule>
<Directory "/var/www/localhost/choir/cgi-bin">
        AllowOverride None
        Options None
        Require all granted
</Directory>

The apache2 access log shows the files of the page being fetched, but makes 
no mention of /include/hmenu.incl, nor of includes at all.

It's clear I'm missing something, because I did have this working some years 
ago. Would someone like to put me out of my misery before my head-scratching 
wears a hole? Please?

-- 
Regards
Peter

Replies

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