AdGuardHome
AdGuardHome copied to clipboard
Redirect to servername
Prerequisites
-
[X] I have checked the Wiki and Discussions and found no answer
-
[X] I have searched other issues and found no duplicates
-
[X] I want to request a feature or enhancement and not ask a question
Description
What problem are you trying to solve?
I like to use force_https but it redirects to the same hostname that I used in my browser. That is fine if the server should use multiple hostnames. But if I call my server with IP I will redirected to https with the server IP that leads to TLS certificate issue (bad cert domain). Would be helpful if the server_name could be used for the redirect from http to https.
Proposed solution
Introduce force_https_to_server_name with default false. If it is true it could redirect to server_name.