My site has one IP. They set for me tww records into DNS servers: www.mydomain.com --> admin.mydomain.com -->
My apache httpd.conf reads as follows:
...
ServerName www.mydomain.com:80
DocumentRoot "/home/somewhere/www"
NameVirtualHost <IP A>:80
<VirtualHost <IP A> >
ServerAdmin webmaster@mydomain
DocumentRoot /home/somewhere/www/admin
ServerName admin.mydomain.com
</VirtualHost>
Now, if I type www.mydomain.com
or admin.mydomain.com
I get the same page, i.e. the main server.
The nslookup command shows that both www.mydomain.com
and admin.mydomain.com
point to IP A.
Any help?