-1
有配置nginx的,当提及http://example.com/sellers 必须给从文件夹/数据/卖家 服务器在另一种情况下 - 文件夹/数据/客户的配置Nginx的使用几个目录
Nginx的配置:
server {
listen 80;
server_name localhost;
index index.html index.htm home.html;
location /sellers {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
rewrite ^/sellers/?(.*) /$1 break;
root /data/sellers;
}
location/{
root /data/customers;
}
}
一切正常,但并不完全正确:当访问服务器卖家以某种方式使用index.html文件夹/data/customers/index.html 而所有其余的文件夹/数据/卖家(这是正确的) 什么可能是错误的?为什么nginx需要错误的index.html文件,尽管Georgia的其余部分都是正确的?
我投票关闭这一问题作为题外话,因为它不是英文。 – GolezTrol
Вамвhttp://ru.stackoverflow.com/ –
对不起。我现在将翻译 –