OSX的Apache Web服务器埃尔卡皮坦升级404错误 [英] OSX Apache Web Server El Capitan Upgrade 404 Error

查看:175
本文介绍了OSX的Apache Web服务器埃尔卡皮坦升级404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试后,他们在用户级别运行OSX优山美地的时候就已经启用访问我的本地站点的目录页时升级到埃尔卡皮坦后收到404错误。问题是,Apache的httpd.conf文件重置为默认它禁用的用户文件夹从加载文件。因此,的http://本地主机加载罚款的 HTTP://localhost/~username/index.html 不会加载

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.

推荐答案

这里的修复:

备份创建的新配置文件:

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

这篇关于OSX的Apache Web服务器埃尔卡皮坦升级404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆