mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #223] Question: How to add redirect to default site #196
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#196
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 @xannor on GitHub (Oct 31, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/223
I am not sure if this is possible but,
I want to add a default rewrite rule to the default site that will append a domain name to a non-domain request.
I.E. http://servername gets redirected to http://server.tld (possible to https in the future) I would liek this because I have a TLD for my local network but typing in server names is faster than the full name.
I have done this before with manual configuration by adding a (I may have this wrong but I believe it is close):
server_name "~^(?<servername>[^.]+)$";
location / {
rewrite ^ http://$servername.tld$request_uri permanent;
}
to the default server so it will first rewrite any request to the full name.
is this possible in proxy manager?
Bonus: This also could be a great config setting as well... Just fill out a default domain name and every request to the name only will be redirected.