listen 80;
server_name 域名;
location /xxx {
index index.html;
root /www/wwwroot/地址;
} 这样nginx 报404
但是
proxy_pass http://localhost:/端口;
转发到 端口页面又可以
server {
listen 4002;
index index.html;
root /www/wwwroot/地址;
}
感觉没问题啊 问ai也说没问题