American Programmers Independent, LLC.

When you want something done, call API

Menu
  • API Leather Crafting
    • About API Leather Crafting
  • API Labor
    • Terms of Service
    • Rate Sheet
  • API Makerspace
    • GRUB_INIT_TUNE Necropolis
    • Raspberry Pi
    • Arduino
    • TI LaunchPads
  • About Us
  • Contact Us
  • Privacy Policy
Menu

Apache2 access permissions changes — mod apache2.conf to fix

Posted on July 24, 2014July 26, 2014 by John Nash

The infamous Apache2 “You don’t have permission to access / on this server” error started appearing after I updated my Mint/MATE system (Ubuntu) to version 17 (14.04). It is fixed by editing /etc/apache2/apache2.conf

You will only see this problem if you change the web documents folder to something other than the default, which most paranoid sysadmins will do. I encountered this problem when I upgraded Mint/MATE from v15 to v17 this week.

In the /var/log/apache2/error.log file there are lines such as:

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

Thanks for the fix goes to Kai Hendry, @kaihendry
See the fix at http://dabase.com/blog/AH01630:_client_denied_by_server_configuration/.

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

<Directory />
    AllowOverride none
    Require all denied
</Directory>

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

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

The details he provides a link to are at http://httpd.apache.org/docs/2.4/upgrading.html#access.

Kai’s twitter feed is at https://twitter.com/kaihendry.

Share on Social Media
x facebook pinterest linkedin tumblr reddit emailwhatsapptelegrammastodon

Search for Topic:

Buy Programming Labor

Buy WordPress Setup

Subscribers

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2019 American Programmers Independent, LLC. - All Rights Reserved Worldwide
©2025 American Programmers Independent, LLC.