一般情况下是不需要做代理的。做端口映射即可。
server {
listen 8075;
server_name 外网IP;
charset UTF-8;
#access_log logs/host.access.log main;
location / {
proxy_redirect off;
proxy_pass http://127.0.0.1.:8075;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}