The Linux Page

Apache2 error: client denied by server configuration

I installed a website on a brand install installation of Ubuntu 14.04 (opposed to an upgrade from earlier versions) and the same website would not start...

Apache2 would give me the following error:

client denied by server configuration

which did not seem to tell me anything... I search for the error and the first page that popped up was a page by Apache2 and they said to add the deny/allow trick. I tried that and it did not help.

    <Directory /my/special/directory>
        Order allow,deny
        Allow from all

Search further, I found an answer on Stackoverflow asking about that problem and the answer was to add another line in there:

    <Directory /my/special/directory>
        Order allow,deny
        Allow from all
        Require all granted

Once that option was added, it worked like a charm.

The problem is that now Apache2 checks the ownership of the files and if not somehow owned by www-data, it returns a 403 Forbidden error.

Some setup may also require to add yet another option:

    <Directory /my/special/directory>
        Order allow,deny
        Allow from all
        Require all granted
        Satify any

You may want to check out the documentation about Require and Satisfy to have a better idea of what these two options really do.

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165


Terms of Site Index

Find the page/content you are looking for with our index.

  • ChangeDisplaySettings
    Function used to change the display settings under MS-Windows.
  • XML

    Extensible markup language. First mainly used on the Internet, XML was born out of a constrained version of HTML (SGML). It is now used for all sorts of data.

  • constant
  • time
  • weird