Nginx

启动命令:/usr/nginx/sbin/nginx 
如果已经启动的话,直接/usr/nginx/sbin/nginx -s reload
server {
    listen 80;
    server_name www.xxx.com;
    location / {
        proxy_pass http://localhost:8686/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}            

  

posted @ 2018-01-27 19:58  秋水秋色  阅读(147)  评论(0编辑  收藏  举报