rewrite url to url:port number

2020-01-29 09:52发布

问题:

how can I rewrite the next url request:

http://mydomain.com/virtualDirectory/default.aspx?param1=2&param2=car

to:

http://mydomain.com:8888/virtualDirectory/default.aspx?param1=2&param2=car

Best regards.

回答1:

You should install the URL Rewrite and the ARR (Application Request Routing) modules for IIS. Here are two links on how these can work together to create a reverse proxy to do what you want:

  • Reverse Proxy with URL Rewrite v2 and Application Request Routing
  • Setting up a Reverse Proxy using IIS, URL Rewrite and ARR