Nginx简简单单小配置

代码真香

upstream www.od.me {
        server 127.0.0.1:16363;
        server 127.0.0.1:16364;
}

server {
        listen   6363;
        server_name www.zzhub.cn;
        access_log  /data/logs/nginx/access_nginx_haiwai.log;
        error_log  /data/logs/nginx/iguitar.log;
        location / {
               proxy_pass http://www.od.me;
               proxy_set_header Host $host;
               proxy_set_header X-Real-IP $remote_addr;
               proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
               client_max_body_size    1000m;
        }
}
更新时间:2017-10-05 10:32:15

本文由 智慧煮粥 创作,如果您觉得本文不错,请随意赞赏
采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
原文链接:http://zz.zzhub.cn/archives/nginxxiang
最后更新:2017-10-05 10:32:15

评论

Your browser is out of date!

Update your browser to view this website correctly. Update my browser now

×