question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redirect http to https or turn on nginx

See original GitHub issue

This is probably me missing something, so hopefully a quick answer will do; I just couldn’t find the answer searching around setup/issues.

My app isn’t correctly redirecting 80 traffic to 443. My ssl is working if you specifically go to https:// but somewhere I must have deleted a line in mup.js or something.

  1. What goes in mup.js to force this redirect?
  2. OR how can I turn off the built in frontend, and I can setup my own nginx? (i.e. right now when I try and turn on nginx I get):
2017/03/08 21:53:44 [emerg] 23934#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2017/03/08 21:53:44 [emerg] 23934#0: bind() to 0.0.0.0:443 failed (98: Address already in use)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
zoderncommented, Aug 11, 2017

Mup 1.3 will be able to redirect http to https.

2reactions
zoderncommented, Mar 8, 2017

Are you using custom certificates or let’s encrypt? I think the nginx container used for let’s encrypt does this by default.

You can add the force-ssl package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirect HTTP to HTTPS in Nginx - Linuxize
The preferred method to redirect HTTP to HTTPS in Nginx is to configure a separate server block for each version of the site....
Read more >
Activating NGINX to Redirect HTTP to HTTPS Traffic
Before you begin activating NGINX to Redirect HTTP to HTTPS traffic you must first have an SSL certificate installed on your web server....
Read more >
Redirect HTTP to HTTPS in Nginx - Servers for Hackers
One method I like to do is catch-all port 80 ( http ) requests and redirect them to port 443 ( https )....
Read more >
Nginx Redirect HTTP to HTTPS - Linux Hint
Nginx is a powerful redirecting tool that can be configured easily on your system to redirect the less secure or unencrypted HTTP web...
Read more >
How do I redirect HTTPS to HTTP on NGINX? - Stack Overflow
The server will first do the https exchange, and THEN issue the redirect, in which case, what's the point? Will add more if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found