Scott Whittaker

Frontend Developer

Day job React | side projects Svelte

Apache 2.4 Upgrade - Authorisation Rules

When did Mac upgrade to use Apache 2.4, Yosemite, El Capitan? I only realised when my local web server returned a 403 Forbidden HTTP status code for an alias that I had not accessed for some time.

It turns out that the authorisation rules have changed.

Before

Alias /somedir "/Users/username/somedir/"
<Directory "/Users/username/somedir/">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

After

Alias /somedir "/Users/username/somedir/"
<Directory "/Users/username/somedir/">
        Options Indexes MultiViews
        AllowOverride None
        Require all granted
</Directory>