赞
踩
location /screen {
auth_basic "secret";
auth_basic_user_file /usr/local/nginx/conf/passwd.db;
proxy_pass http://my.serverpool.com;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
3.重启nginx
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。