如题,主机有2个用户,root和自己创建的bhkj用户。用自己创建的bhkj用户启动nginx可以访问到图片,但是用root启动就提示
403 Forbidden
You don't have permission to access the URL on this server. Sorry for the inconvenience.
Please report this message and include the following information to us.
Thank you very much!
nginx配置如下:
server {
listen 8000;
server_name localhost;
location ~ .*\.(gif|jpg|jpeg|png) {
root /app/bhkj/wls12130/user_projects/domains/BABY/servers/myserver/;
}
}
访问地址为:http://xxx.xx.xx.xx:8000/upload/1413951178960photo.jpg
求指点如何用root启动nginx还能访问到图片!
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。