阿里云centos7,lnmpa 默认安装之后,设置根目录后总是不正确,接触少,勿怪,

问答中心分类: Nginx阿里云centos7,lnmpa 默认安装之后,设置根目录后总是不正确,接触少,勿怪,
she asked 7年 ago
1.参考解决的方法:(不行
chown -R http://www.www /data/wwwroot/default/tp3/
find /data/wwwroot/default/tp3/ -type d -exec chmod 755 {} \;
find /data/wwwroot/default/tp3/ -type f -exec chmod 644 {} \;
2.修改nginx.conf  (不行)
root /data/wwwroot/default;
index index.html index.htm index.php;
location /nginx_status {
stub_status on;
access_log off;
有了解的大佬,帮忙看一下,谢谢您~~
 

5 Answers
she answered 7年 ago
访问www.url.com/tp3  可以使用,

oneinstack answered 7年 ago
你这样放文件 不就是这样访问(www.url.com/tp3)嘛

she answered 7年 ago
 nginx设置 是 root /data/wwwroot/default/tp3/;  

是这样的

oneinstack answered 7年 ago
相关apache配置是否改?

she answered 7年 ago
哭,不知道去哪改,重装了几次,我就直接换lnmp了。。。。,对不起大佬,