Hi, i have a server with 12 domains, i discover that some time now at every new domain that i create the domain lets say https://test.com if i request it http://test.com, it redirects to my main (head) domain https://main.com
Please make sure that for both test.com and main.com Apache and Apache SSL website features are enabled on virtual-server.name - Edit Virtual Server page.
Then have a closer look to <VirtualHost></VirtualHost> directive for the given domain and if it has IP set explicitly or *.
Address format for Apache virtual hosts can be defined on System Settings ⇾ Virtualmin Virtual Servers ⇾ Configuration: Defaults for new domains page.
The fix could be as simple as selecting Always use IP (or Always use* depending on network configuration) and then toggling Apache and Apache SSL website feature on virtual-server.name - Edit Virtual Server page.
Hi Ilia,
No, it didnt work.
I check with both (IP and *) delete the account and restore it from backup, but no luck
Still redirects to the main domain.
I remember i did the ipv6 this manual in a config file both don’t know which . While wasn’t working out of the box. ( thinks depend on how hoster gives these IPv6 and you are using it)
( it has at activated at boot, but it doesnt activate with boot)
Please check if your system at all has any IPv6 addresses assigned by running ip a command.
The point is to make sure that if your DNS records have IPv6 set (including glue records on registar side) then domain configuration in Virtualmin under virtual-server.name - Server Configuration ⇾ Change IP Address page should also have it.
Also, IPv6 addresses in question must match correspondent records in DNS.
These are globally default configurable options, and they are not affecting existing domains but only those created anew.