fIwJlxSzApHEZIl
fIwJlxSzApHEZIl

Reputation: 13290

OSX Apache Web Server El Capitan Upgrade 404 Error

I was receiving a 404 error after upgrading to El Capitan when trying to access pages in my local sites directory after they were already enabled at the user level when running OSX Yosemite. The issue was that Apache reset the httpd.conf file to its default which disables the user folders to load files from. So http://localhost loaded fine BUT http://localhost/~username/index.html would NOT load.

Upvotes: 0

Views: 1570

Answers (1)

fIwJlxSzApHEZIl
fIwJlxSzApHEZIl

Reputation: 13290

Here's the fix:

back up the "new" config file that was created:

sudo cp /etc/apache2/httpd.conf /etc/apache2/httpd.conf_capitan

restore the "old" config file that was renamed:

sudo cp /etc/apache2/httpd.conf~previous /etc/apache2/httpd.conf

Upvotes: 3

Related Questions