nginx反向代理配置
- 时间:
- 来源:网络
建站服务器 1.修改nginx.conf配置文件,在 location / {这个行下添加反向代理
location / { proxy_pass http://192.168.2.140:8080/;#就是这行代码 auth_basic off; auth_basic_user_file /var/user; root html; index index.html index.htm; }
http://www.nginx1.com:9527/
建站服务器 1.修改nginx.conf配置文件,在 location / {这个行下添加反向代理
location / { proxy_pass http://192.168.2.140:8080/;#就是这行代码 auth_basic off; auth_basic_user_file /var/user; root html; index index.html index.htm; }
http://www.nginx1.com:9527/