Published: Thursday, Feb 23, 2012 Last modified: Friday, May 24, 2024

After installing Apache 2.4 in /usr/local/apache2/, I struggled to get my VirtualHost setup going.

After plonking in at conf/extra/virtual.conf:

UseCanonicalName    Off
VirtualDocumentRoot /srv/www/%0
Options All ExecCGI FollowSymLinks +Includes

Then enabling LoadModule vhost_alias_module modules/ and restarting the httpd, I kept getting these messages:

AH01630: client denied by server configuration: /srv/www/webconverger/

Turns out there seems to be a new permission model, whereby this policy:

<Directory />
	AllowOverride none
	Require all denied

Stops access to /srv/www. To alleviate this, after that “deny all” stanza above you add the exception:

<Directory "/srv/www">
Options All
AllowOverride All
Require all granted

Read the Access Control bit in the caniocial Apache httpd documentation for more.