https://github.com/ogaudefroy/nlbcompatmodule
Transparent SSL Offloading support for IIS applications
https://github.com/ogaudefroy/nlbcompatmodule
iis ssl ssl-offloading
Last synced: 2 months ago
JSON representation
Transparent SSL Offloading support for IIS applications
- Host: GitHub
- URL: https://github.com/ogaudefroy/nlbcompatmodule
- Owner: ogaudefroy
- License: mit
- Created: 2016-02-25T20:34:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-07T20:53:44.000Z (over 8 years ago)
- Last Synced: 2025-01-23T12:15:40.273Z (4 months ago)
- Topics: iis, ssl, ssl-offloading
- Language: C#
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NlbCompatModule
Transparent SSL Offloading support for IIS applications made with a custom HTTP Module implementing the following behavior OnBeginRequest.[](https://ci.appveyor.com/project/ogaudefroy/nlbcompatmodule/branch/master) [](https://badge.fury.io/nu/NlbCompatModule)
Fix HttpContext server variables with X-FORWARDED-PROTO header:
- Set HTTPS to on or off.
- Set SERVER_PORT to 443 or 80
- Set SERVER_PORT_SECURE to 1 or 0Fix HttpContext server variables with X-FORWARDED-FOR header:
- Set REMOTE_ADDR to the most right string contained in the header (comma separated list) just like any other LB system would do.Code currently in production in a high traffic website ; works with IIS 7+, see http://referencesource.microsoft.com/#System.Web/Hosting/IIS7WorkerRequest.cs.html.
Please remember that this HTTP module MUST be executed first ; therefore do not forget to add it at the top most of your Web.config modules section.
You might encounter difficulties if your system is using systems like New Relic ; if you do meet this situation you can workaround this by using context.RewritePath https://msdn.microsoft.com/en-us/library/system.web.httpcontext.rewritepath(v=vs.110).aspx