Proxy

upstream test {
server 127.0.0.1;
}

server {
          listen 80;
          #include Domain/test.txt;
          server_name test.com;
          location / {
                proxy_pass http://test;
                index index.jsp index.htm index.html;
                proxy_redirect off;
                proxy_set_header Host $host;
                proxy_headers_hash_max_size 51200;
                proxy_headers_hash_bucket_size 6400;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $http_x_forwarded_for;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header server_port $server_port;
              }
#access_log /home/wwwlogs/access.log;
}

发表评论