How do I forward/redirect all requests from HTTP to HTTPS in NancyFX SelfHost? -


i'm trying requests made to:

http://<myserver>:1234

are redirected to:

https://<myserver>:1234

i've tried using "this.requireshttps()" in modules, when hit url http://<myserver>:1234, browser spins, , i'm guessing it's because didn't construct nancyhost http uri. can't add http uri nancyhost along https uri so:

var host = new nancyhost(new uri("http://localhost:1234"), new uri("https://localhost:1234"));

because i'll registration conflicts.

any ideas?

you cant have http , https listening on same port. change port https binding, , specify in requireshttps call.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -