server {
listen 80;
server_name test.com;
#charset koi8-r;
access_log logs/test.access.log;
error_log logs/test.error.log;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Cookie $http_cookie;
proxy_cookie_path /vga/ /; #防止无法更新验证码
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}
listen 80;
server_name test.com;
#charset koi8-r;
access_log logs/test.access.log;
error_log logs/test.error.log;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Cookie $http_cookie;
proxy_cookie_path /vga/ /; #防止无法更新验证码
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}