mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #623] How to simply redirect no-www to www #526
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#526
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Maritima on GitHub (Oct 1, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/623
Hi
I just want the domain to be redirected to a www if it is no-www (https)
I tried this :
And

But it doesn't work.
I wanted to avoid going through Redirection Hosts

do you have a simpler solution?
Thank you
@neojp commented on GitHub (Oct 21, 2020):
I'm pretty new to NPM, but if I remember correctly the upstream
nginx-proxyscript would add the custom nginx configuration inside theserver { server_name; }block, so you wouldn't be able to do it the way you're trying to.@chaptergy commented on GitHub (May 12, 2021):
Yes, the advanced config does go inside the server block. So no, this would need code outside of the server block, which is unfortunately not possible with NPM. So the redirect host would be your best bet.