问题
how can I rewrite the next url request:
http://mydomain.com/virtualDirectory/default.aspx?param1=2¶m2=car
to:
http://mydomain.com:8888/virtualDirectory/default.aspx?param1=2¶m2=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
来源:https://stackoverflow.com/questions/13529307/rewrite-url-to-urlport-number