nginx反向代理tomcat端口
server {
listen 41689; // 转发到的端口号
server_name 61.177.139.200; // 代理的ip地址
location / {
# root html;
# index index.html index.htm;
proxy_pass http://localhost:8085/; // tomcat配置的端口号、以及访问路径
proxy_connect_timeout 600;
proxy_read_timeout 600;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}