Target server: TargetServer
Configure the reverse proxy server: Reveseproxserver
IIS should be IIS7 and later.
1, determine the final visit URL: such as www.baidu.com, www.jb51.net and so on.
Of course you can also deploy your own program in TargetServer, here to demonstrate, I deployed on the TargetServer 2, 8088 ports, the program is:
Http://targetServer:8088/Auditsys/Default.htm
Http://targetServer:8088/GCustomer/Login.htm
2, the following operations are performed on the reveseproxserver.
3. Install IIS.
4. Installation of Arr, (http://www.iis.net/downloads/microsoft/application-request-routing)
5. Create a new Web site: (my example Yiweb, port is 8080) http://reveseProxServer:8080
5. Enable Proxy
6. Add URL Rewrite rules
Then add a blank rule:
Save this rule, OK!
7. Trial effect
8. Summary:
above ^ (. *), ^192.168.3.73:8080$, http://targetserver:8088/{r:1}
To replace http://targetserver:8088/with 192.168.3.73:8080,
{r:1} means ^ (. *), meaning "http://targetserver:8088/" matches any character after
Eg: Visit 192.168.3.73:8080/test/index.htm
This URL is rewritten as a http://targetserver:8088/test/index.htm
Deploying Nodejs using reverse proxy under IIS