Hostname redirecting to first usersite

pcdenhelder

New member
Joined
Aug 12, 2020
Messages
4
Hi All,

After the fire in the datacenter in Strasbourg (ovh) yesterday i had to get myself a new server. I could switch the failover IPs from the old server to the new one..
After importing all the user accounts every thing works as expected but there is one thing i cant seem to solve..

The domain i use for directadmin is service.pc-denhelder.nl:2222 and the ssl seems to work just fine. When i enter this domain without the port its redirecting to the first site in the list of users..

i changed hostname to service.pc-denhelder.nl in /etc/hosts and created a dns zone.. Also created successfully a letsencrypt for it and on port 2222 everything works as expected. I have to say that my server IP is different then i use for service.pc-denhelder.nl. My server ip is: 37.187.149.87 but this worked on my old server the same way..

Did everything i could find on the forum but i cant seem to get it to work. So i prolly miss something here. Hope you can enlighten me here :D

This is my dns zone:

Code:
$TTL 3600
@       IN      SOA     ns1.pc-denhelder.nl.      hostmaster.service.pc-denhelder.nl. (
                                                2021031101
                                                3600
                                                3600
                                                1209600
                                                86400 )

service.pc-denhelder.nl.    3600    IN    NS    ns1.pc-denhelder.nl.
service.pc-denhelder.nl.    3600    IN    NS    ns2.pc-denhelder.nl.

ftp    3600    IN    A    151.80.243.147
mail    3600    IN    A    151.80.243.147
pop    3600    IN    A    151.80.243.147
service.pc-denhelder.nl.    3600    IN    A    151.80.243.147
smtp    3600    IN    A    151.80.243.147
www    3600    IN    A    151.80.243.147

service.pc-denhelder.nl.    3600    IN    MX    10 mail

service.pc-denhelder.nl.    3600    IN    TXT    "v=spf1 a mx ip4:151.80.243.147 ~all"
 
Solved.. there was some mix up with the ips and owners/shared.. I removed the ip from all users so the ip became free.. then set it global.
and changed the ip back for all the users..
 
Back
Top