Java Web开发之You don’t have permission to access /~{username}/ on this server解决方案
来源:互联网 发布:淘宝网页制作模板 编辑:程序博客网 时间:2024/06/01 21:40
坚持 成长 每日一篇
在FireFox打开tomcat下的网页出现
You don’t have permission to access /~{username}/ on this server.
{username} 代表当前系统用户名。
看到上面的问题,首先会想到的是目录下 /Users/{username}/Sites 下的文件权限问题,有可能,但我碰到的问题不是这样的。
而是需要在目录 /etc/apache2/users 创建一个文件 {username}.conf,如 Unmi.conf,甚至可以任意文件名,文件内容如下:
<Directory "/Users/{username}/Sites/"> Options Indexes MultiViews AllowOverride AuthConfig Limit Order allow,deny Allow from all</Directory>
最后,在 System Preferences 里重新启动下 Web Sharing 就可以解决了。
注意,系统升级到最新的 Mountain Lion 之后,在 System Preferences 里已经没有 Web Sharing 项目,你必须在命令行下用命令
sudo apachectl start/stop/restart/graceful
来启动、停止、重启 Apache2 服务了。
0 0
- Java Web开发之You don’t have permission to access /~{username}/ on this server解决方案
- You don't have permission to access / on this server
- You don't have permission to access /*** on this server
- You don't have permission to access / on this server.
- You don't have permission to access on this server.
- You don't have permission to access / on this server.
- You don't have permission to access ××× on this server.
- You don't have permission to access / on this server
- You don't have permission to access / on this server.
- You don’t have permission to access/on this server
- You don't have permission to access / on this server.
- You don't have permission to access / on this server.
- You don't have permission to access / on this server.
- apache 解决方案:You don't have permission to access / on this server
- apache 之 you don't have permission to access / on this server linux 下 错误解决方法
- apache 之 you don't have permission to access / on this server linux 下 错误解决方法
- apache 之 you don't have permission to access / on this server linux 下 错误解决方法
- apache 之 you don't have permission to access / on this server linux 下 错误解决方法
- Linux下shell的学习--之杂七杂八
- CAST,CONVERT,
- hdu 1175 连连看
- 使用shiro的session后,HttpSession.getServletContext() 获取一直是null的解决方法
- 微信OAuth授权获取用户OpenId-JAVA
- Java Web开发之You don’t have permission to access /~{username}/ on this server解决方案
- 从键盘输入一个字符,判断其类型
- Java web开发(2)——Tomcat服务器
- phonegap(cordova) 自定义插件代码篇(五)----android ,iOS 集成微信登陆
- SHA512算法加密
- PHP获取交集和差集
- arm 简易汇编语法
- BASE64加密图片字符串转码
- 搭建本地服务器