Powered by Typecho)))
Optimized by EAimTY
server
{
listen 8181;
location / {
#DNS最好换一个
resolver 8.8.8.8;
proxy_pass http://$http_host$request_uri;
}
access_log /var/log/nginx/proxy_access.log;
}
普通的HTTP代理就此搭建完毕。。。如果需要密码验证,可以和.htpasswd结合使用