AppGatewayHostRewriteModule 1.0.2

Replaces the Host header with the X-Original-Host on IIS of App Service via a native C++ module. NOTE: There is a popular approach to replace the HOST header with the value of X-Original-Host header by unlocking the Host and X-Original-Host headers, so they can be rewritten using rewrite rules. Once the request reaches the App Service, the value of the HOST header is set to the value of the X-Original-Host header. However, this approach has a pitfall. If there are other rewrite rules executed after the rule for rewriting the HOST header, they do not respect the new value of the HOST header. Using the native IIS module ensures that the HOST header has taken the value of the X-Original-Host header before the rewrite module steps in.

Install-Package AppGatewayHostRewriteModule -Version 1.0.2
dotnet add package AppGatewayHostRewriteModule --version 1.0.2
<PackageReference Include="AppGatewayHostRewriteModule" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AppGatewayHostRewriteModule --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 579 2/3/2020
1.0.1 197 1/29/2020
1.0.0 220 1/24/2020