server {
listen 80;
server_name sell.com;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /opt/data/wwwroot/sell;
index index.html index.htm;
}
location /sell/ {
proxy_pass http://192.168.0.102:8080/sell/;
}
以上是我的服务器上的nginx部分配置,192.168.0.102的我本机的ip,但是,从本机上访问ngiex服务器还是访问不到sell/buyer/product/list接口