question

sharonmutzafi-7264 avatar image
0 Votes"
sharonmutzafi-7264 asked BruceZhang-MSFT commented

Reverse proxy

Hi, i have a question. Hi all, I want to setup something rather simple.

I have an IIS webserver running on location A, HTTPS on port 8443. I want users with tablets from the outside to access this webserver from site B only (so that location A will not be exposed directly to the internet, only to the WAN IP of site B. the server on site B needs to act as a reverse proxy for site A.

On location B i have a windows server with IIS installed. How do I set it up?

windows-server-iis
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sharonmutzafi-7264 avatar image
0 Votes"
sharonmutzafi-7264 answered

Hi, thank you for answering, are all the steps mentioned there relevant to my task? Including all the ASP.NET markups?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BruceZhang-MSFT avatar image
0 Votes"
BruceZhang-MSFT answered

Hi @sharonmutzafi-7264 ,

What you need to set is site B on location B. Install Application Request Routing Cache and check enable proxy in Server proxy setting.
121824-2021-08-10-105204.jpg
121780-2021-08-10-105246.jpg
Then create the rewrite rule in URL rewrite module of site B. When you click Add Rules... you can choose reverse proxy. It is more convenient. Then enter the url of site A.

If any issue happened, you can use failed request tracing to trouble shoot it.




If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.


Best regards,
Bruce Zhang




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sharonmutzafi-7264 avatar image
0 Votes"
sharonmutzafi-7264 answered BruceZhang-MSFT commented

I have done that, and solved an error by visiting this link:

https://techcommunity.microsoft.com/t5/iis-support-blog/iis-acting-as-reverse-proxy-where-the-problems-start/ba-p/846259

If I open a browser and going to the URL, it's showing me the login screen of the backend server (site A). But how do I know that the proxy server is actually working - meaning, How do I know that all traffic is routed back and forth through it?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @sharonmutzafi-7264 ,

If you followed the link to set custome server variables, you can see these variables as response headers in browser. Or the best way is check traffic in failed request tracing of reverse proxy server( in your case is siteB). You can monitor the process of reverse proxy.

0 Votes 0 ·