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.

wildcard redirect http to https

See original GitHub issue

Feature Request

I have a synology nas that will handle all the ssl certs. but it’s not redirecting http to https

Is NPM able to redirect all http traffic to https? Right now, I’m redirecting 1 source to 1 destination in the Redirection Hosts and it works.

http --> a.domain.com --> 301 --> https --> a.domain.com
http --> b.domain.com --> 301 --> https --> b.domain.com

But what I want is a single redirect command that will redirect all http --> *.domain.com --> 301 --> https --> *.domain

Is your feature request related to a problem? Please describe. When you have 10-20 dockers that need http to https redirection. it can be a pain doing it 1 by 1 for each redirect.

Describe the solution you’d like A wildcard redirect would be awesome. 1 redirect command to redirect all http traffic to https.

Describe alternatives you’ve considered I’ve thought about using the regular nginx and changing the block code.

server {
	listen 80 default_server;
	listen [::]:80 default_server;
	server_name _;
	return 301 https://$host$request_uri;
}

But I prefer the Nginx Proxy Manager GUI.

Additional context Maybe if you allow block code in Nginx Proxy Manager for advanced users. That would solve a lot of problems. Being able to edit server blocks will help more advanced users to fine tune their setup.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:6

github_iconTop GitHub Comments

1reaction
tingjie02commented, Apr 5, 2022

just tick Force SSL

0reactions
tomlawesomecommented, Nov 7, 2022

just tick Force SSL

This doesn’t work. SSL is not in fact forced.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wildcard Redirect: What it is, Why use it & Examples
Also referred to as a wildcard subdomain or catch-all subdomain, this redirecting option allows browsers to reach your site despite the ...
Read more >
redirect all subdomains from http to https - Stack Overflow
The 301 redirect is considered a best practice for upgrading users from HTTP to HTTPS. Note: This config is based on Wildcard Certificates ......
Read more >
What is Wildcard redirect? - SiteGuru
Wildcard redirects allow you to redirect all of the URLs in a folder on your site. Learn how forwarding domains, masking, URL forwarding, ......
Read more >
Is it possible to do a wildcard HTTP->HTTPS redirect for all ...
We are on CentOS 7. We want to redirect all http://www.site.ext.dev-username.commondomain.ext to https://www.site ...
Read more >
Adding HTTP Wildcard Redirects <add> - Microsoft Learn
The <add> element of the <httpRedirect> element adds a wildcard redirection rule to the collection of redirection rules. Wildcard rules allow ...
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