在nginx中 location /中配置了html路径,为什么访问不到,访问地址是ip/xx.html,想让他既可以访问http://nexus,也可以直接访问html目录下的文件,请问怎么修改这个配置
location /{
root /data/server/nginx/html;
index index.html index.htm;
proxy_pass http://nexus;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Read-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 200M;
}