server{
listen 80;
server_name jira.test.net; # 公网ip
index index.php index.html index.htm;
location / {
proxy_pass http://47.xxx.xxx.12:8002;
proxy_redirect off;
proxy_set_header Host $host:$server_port; ##重点在$server_port
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_hide_header Vary;
proxy_set_header Accept-Encoding '';
proxy_set_header Referer $http_referer;
proxy_set_header Cookie $http_cookie;
}
}
server{
listen 80;
server_name jira.test.net; # 公网ip
index i