Java必备技能之实战篇—Nginx各种应用场景配置(可以直接复制修改使用)
nginx正向代理server { listen 8090; location / { resolver 218.85.157.99 218.85.152.99; resolver_timeout 30s; proxy_pass http://$host$request_uri; } access_log /data/httplogs/proxy-$host-aceess.log; }测试:http://www.ttlsa.com:8090resolver