OSX Apache Web Server El Capitan Upgrade 404 Error

大兔子大兔子 提交于 2019-12-25 03:38:31

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/33003131/osx-apache-web-server-el-capitan-upgrade-404-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!