Public network and network port mapping relationship is
Outside the network port network port
9001 -- -- -- -- -- - & gt; 80
9002 -- -- -- -- -- - & gt; 8800
9003 -- -- -- -- -- - & gt; 9900
Now network deployed nginx listening port 80, how to configure nginx access to the Intranet applications can use the network?
CodePudding user response:
Server {
Listen, 9001;
Server_name www.baidu.test.com; # you want to fill in the domain name, multiple use commas
The location/{
Proxy_pass http://ip:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Write three
CodePudding user response:
Can also configure the router port mapping