2012年9月1日

使用 nginx 做http代理

摘要: 在Ubuntu上,下面的配置是有效的:server { listen 80; server_name news.example.com; location / { proxy_pass http://192.168.1.123; proxy_set_header Host $host; } }如果使用 $sheme://$host 代替 http://ip 则报 502 错误。 阅读全文

posted @ 2012-09-01 17:49 还是刀哥靠谱 阅读(756) 评论(0) 推荐(0) 编辑

导航