Apache giving 404 error after Mac OS sierra update

drusixtynine picture drusixtynine · Sep 26, 2016 · Viewed 15k times · Source

I just updated to Mac OS 10.11 Sierra lately and classic web server is not working properly, or I should say that my home directory is not working Apache server is working at localhost as I get the 'It works' page, but localhost/~myuser is giving this message 'The requested URL /~myuser was not found on this server' I tried to follow this tuto but it is still not working

Can someone help me?

Answer

Tobias picture Tobias · Oct 17, 2016

In Terminal, head to /etc/apache2 and

sudo mv httpd.conf httpd.conf.sierra
sudo mv httpd.conf~previous httpd.conf
sudo apachectl restart

Worked like a charm for me.