0

I need to redirect all HTTP traffic to HTTPS, and I need to do it in IIS layer, rather than in ASP.NET Core MVC.

I know about this and this questions, and I also know about the SSL middleware.

Yet I can't use rewrite module, and as I said, I need to do it in IIS layer.

The solution before ASP.NET Core was easy. I would create an HTTP module, register it in Web.Config and that was it.

Now since IIS's application pool is set to No Managed Code (which is recommended for performance issues) how can I create an HTTP Module?

5
  • 1
    Would IIS rewrite module help? Don't know if it works with .net core? Btw, why would you not use HTTP module, it's really ideal for the case? Commented Dec 24, 2017 at 19:08
  • 1
    Why can't you use the url rewriter module? Commented Dec 24, 2017 at 20:39
  • Why do you have to do it in IIS? Also, you don't have to use No Managed Code Commented Dec 24, 2017 at 23:37
  • @Kevin, it's because of a bigger architecture that relies on some part on IIS. Commented Dec 25, 2017 at 4:58
  • @MartinUllrich, Yeah we can do that, yet that's bad for performance. That might be our last choice. Before that I just wanted to see if it's possible to use old IIS features in ASP.NET Core MVC? And BTW, ANCM is itself an IIS Module. Commented Dec 25, 2017 at 4:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.