Search code examples
macosapacheosx-elcapitan

OSX El Capitan - Apache 403 Forbidden


I just upgraded from Yosemite to El Capitan but unfortunately forgot to copy my old httpd.conf and now i need to configure all of its settings again.

I already changed the documentroot to the previous one /users/admin/www, and also configured to release access to this folder:

<Directory "/users/admin/www">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Restarted Apache but even this way I get the 'Forbidden' error when trying to access 127.0.0.1.

What am I'm missing here?


Solution

  • I just found out that the old .conf file is saved during the El Captain update, in this folder :

    /private/etc/apache2/httpd.conf.pre-update

    So i just copied the old definitions to the new one :)