标签:nts user cte listen pst http set header ack
user nobody;
worker_processes 8;
events {
use epoll;
worker_connections 2048;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream backend {
# ip_hash;
sticky;
server 10.217.0.141:8182;
server 10.217.0.151:8181;
}
server {
listen 8181;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location /huss/ {
proxy_set_header Host $host:8181;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#反向代理的地址
proxy_pass http://backend;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
标签:nts user cte listen pst http set header ack
原文地址:https://www.cnblogs.com/lichoo/p/10417277.html