upstream ibase4j { server 172.16.200.65:8088; } server { listen 80; #nginx监听8080端口 server_name localhost; location / { proxy_pass http://ibase4j; #代理路径 proxy_redirect off; proxy_set_header Host $host; proxy_set_header Cookie $http_cookie; proxy_set_header X-Real-Ip $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /iBase4J-UI-AngularJS { root E:\workspace2\iBase4J\iBase4J-UI; index } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }