IP adress refers to main domain

PaulMD

Verified User
Joined
Sep 18, 2016
Messages
16
How can I get an IP to forward/refer to an certain IP address?

When visiting my first IP address I get the page "Apache is functioning normally". When I visit my second IP address I get the first domain I added to that IP address in directadmin. If I remove the domain to another IP I see another domain at my second IP.

Is there a way how I can select a domain by myself? For the second IP and also for the first IP?
 
It looks at the first virtual host it sees. So no.
 
It looks at the first virtual host it sees. So no.
Is there no option in CentOS to get the second IP (IPv4) to refer to "Apache is functioning normally file" at /var/www/html/index.html and not at a virtual host? Like the first IP? I do not want it to refer to the first virtual host (that's my daughters name with an A).
 
Normally the ip of the installation is used, so if that is your first ip, the virtual hosts should point to that.
I don't know if there is an easy way to change that except for changing the license ip to the ip you want things working on and reinstalling directadmin.

If you mean something else, then I misunderstood, sorry.
 
Back
Top