我刚到NGINX。
我将NGINX设置为
subdomain.example.com
影响内部ip 192.168.x x x.x。这很管用。
现在我想访问我网络中的另一个服务器,让它调用192.168.xxx.Y。
Y应该在subdomain.example.com/Y下可用。
如何配置NGINX?
这是我的第一次尝试-不起作用:
server {
listen 80;
server_name subdomain.example.com;
location / {
proxy_pass http://192.168.xxx.x:80;
}
location /Y {
proxy_pass http://192.168.xxx.Y:377;
}
}
有什么建议我做错了什么?