Client denied by server configuration on Apache 2.4

When setting up virtual hosts on Ubuntu 14.04, you can easily get tripped up by a change in Apache version 2.4. ┬áIf you’re getting the error:

Forbidden

You don’t have permission to access / on this server.

or seeing this in your Apache Logs:

client denied by server configuration: [document root]

Try adding the following to your virtual host file:

[code language=”xml”]


Require all granted

[/code]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>