server{
# 监听的端口
listen 80;
# 绑定的域名,多个用空格分开即可。
server_name www.rhihi.com;
location / {
# 代理的地址
proxy_pass http://127.0.0.1:9010;
}
}
nginx配置代理服务器
server{ # 监听的端口 listen 80; # 绑定的域名,多个用空格分开即可。 server_name www.rhihi.com; location / { # 代理的地址 proxy_pass http://127.0.0.1:9010; } }