[nginx conf] nginx简易转发配置 #nginx
server {
listen 80;
server_name localhost www.test.cn;
proxy_connect_timeout 30s;
proxy_read_timeout 1000s;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8080;
}
}