用nginx搭了个HTTP代理给自己用,但是问题来了..
比如上QQ,设置HTTP代理时,提示验证服务器无效;
又或者用作XSHELL链接SSH时也是无效;
求解.
比如上QQ,设置HTTP代理时,提示验证服务器无效;
又或者用作XSHELL链接SSH时也是无效;
求解.
|
1
配置如下:
server { listen xxxx; #http代理 location / { resolver 114.114.114.114; #DNS proxy_pass http://$http_host$request_uri; } #access_log /var/log/nginx/http_proxy_access.log; #error_log /var/log/nginx/http_proxy_error.log; } |
|
nullooAug 26, 2013
2
目测只能代理http,对于需要tcp的不行
|
|
anheiyouxiaAug 26, 2013
4
|
|
anheiyouxiaAug 26, 2013
5
修正一下上面那条回复中的错误的内容,不是仅支持get post方法,get post只是常用的方法~~
|
|
6
@anheiyouxia OK, THX.
|