change domain IP = default apache page

onestar

New member
Joined
Feb 10, 2005
Messages
3
Hi everyone !,

I have just got my server with direct admin v1.23.4.

I installed my domain and later decided to give it a dedicated IP. After changing the IP for the domain, the default apache installation page shows.

1. Whats going on ?
2. How do I fix it ?

Thanks,
FusionFX
 
This IP address is only assinged to one user, and this user only has one domain that uses it? If that's the case and it looks good in DirectAdmin, check the httpd.conf file for the domain your trying to get it to work on and make sure the virtualhost(s) are setup properly with the IP address.
If you ping the domain, does it lookup the IP address you are expecting?

Not sure if this has any affect on this kind of situation, but do you have the domain that is to be used with this IP address set as default?
 
Last edited:
Let's say I had 5 IP's to start off with.
These are not my real IP's.

192.168.0.1 - Server - 1 domain (mydomain.com)
192.168.0.2 - free - admin - ns1.mydomain.com
192.168.0.3 - free - admin - ns2.mydomain.com
192.168.0.4 - free -
192.168.0.5 - free -

I assigned 192.168.0.4-5 to admin & set 192.168.0.5 as shared. I then went to reseller -> list users -> modify own data and changed mydomain.com's IP to 192.168.0.4.

Now when i visit www.mydomain.com, I am greeted with the apache installation succesful page. (I had uploaded my website and it was showing before).

When I ping mydomain.com it still points to 192.168.0.1 (the original IP).

1. How do I setup the domain to be default with the new IP ?
2. Everything in DA looks good
3. Everything in httpd.conf looks good.

thanks
fusionfx
 
Last edited:
How do I setup the domain to be default with the new IP ?

Simple name-based vhosting

* Compatibility: This syntax was added in Apache 1.3.13.
* Setup: The server machine has a primary name server name There are two aliases (CNAMEs) domain.tld website and sub.domain.tld for the address server name.

Server configuration:

...
Port 80
ServerName server.domain.tld

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /www/domain
ServerName xxxxxxxxx
...
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /www/subdomain
ServerName xxxxxxxxxxx
...
</VirtualHost>


The asterisks match all addresses, so the main server serves no requests. Due to the fact that server name is first in the configuration file, it has the highest priority and can be seen as the default or primary server. After completing this process this process you check your address with http://www.ip-details.com/ip-search/
 
DirectAdmin manages your server configuration for you. Not using DirectAdmin? Then you're in the wrong place.

Jeff
 
Back
Top