-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add support for virtual host redirection #1563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
How about:
|
@buchdag would you like to see such a feature in this product? If yes, I can provide a conflict resolution for this PR and add appropriate tests. Just let me know 👍 |
@R0Wi if documented and tested, yes I'd like to see this feature merged 👍 |
@R0Wi hey, any updates on this pr? |
Thanks for this! I am using it right now and it works like a charm. I had to update it a little bit because the template itself has been updated but the essence is great. Thanks! |
Added the
REDIRECT
environment variable to solve issues #180, #960, #958, #444, #1095 and an alternative to #1369.Should work for both HTTP and HTTPS, depending on what is configured and perform a single redirect.
The config below does
non-www
towww
,will create the 301 redirects below
The config below does
www
tonon-www
,will create the 301 redirects below