Jan
Jan

Reputation: 1

IIS reverse proxy using regular proxy

I use an IIS as reverse proxy. However, the target page can only be reached via a "regular" proxy.

Currently I always get a bad gateway error. My guess is that the rewrite module of the IIS does not consider the proxy settings of the system and therefore does not get a connection to the target page.

Do I have to define own proxy settings for the rewrite module? Or is it even possible to use a reverse proxy behind a normal proxy with the IIS?

Upvotes: 0

Views: 296

Answers (1)

Brando Zhang
Brando Zhang

Reputation: 27997

According to your description, I suggest you could try to add the proxy setting in the applicatiohost.config file.

This will make all the request to use the proxy to send to another server.

More details, you could refer to below setting:

Related article: https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/defaultproxy-element-network-settings

Applicationhost.config file path:

C:\Windows\System32\inetsrv\config\

Setting example:

<system.net>
    <defaultProxy>
      <proxy
        proxyaddress="http://10.0.2.231:42"
        bypassonlocal="true"
      />
    </defaultProxy>
</system.net>

Upvotes: 0

Related Questions