nginx 正向代理配置

nginx 正向代理配置
server {
    listen 8088; # 代理的端口
    location / {
       proxy_pass http://$http_host$request_uri;
    }
	resolver 192.168.5.182;# DNS
	access_log  /opt/logs/proxy.access.log;
    error_log   /opt/logs/proxy.error.log;
}

亲测用


你可能感兴趣的:(nginx,正向代理配置)