nginx代理

2016-01-22 16:20  1861人阅读  评论 (0)
Tags: nginx

nginx代理

server {
    listen  80;
    server_name www.dotcoo.com;

    location / {
            #proxy_set_header X-Real-IP  $remote_addr;
            #proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header Host $host;
            proxy_pass http://127.0.0.1:8080;
     }

     location ~ /\.ht {
            deny all;
    }
}