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
    </Directory>

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
    </Directory>

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
    </Directory>

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

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

   

Terms of Site Index

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

  • SeaMonkey
  • code
  • column
  • inline
  • radio

    In the computer world, the term radio is often used for radio buttons.

    Radio buttons are a group of seletable buttons, however, only one of the buttons can be selected in a group. This is called an exclusive choice. Programmatically, when the end user clicks on a button, the computer makes sure that all the other buttons are de-selected.

    The result of the selection is often a number representing the selected button.