confused about default web for IP

4 posts / 0 new
Last post
#1 Tue, 10/13/2009 - 10:55
eXcalibre

confused about default web for IP

Hi all.

I am pretty sure this is a DNS issue but unsure as to why/What is stopping it work.

I have created a new domain and all is working ok as far as i could tell. mail is working and default http://domain.com is working etc.

The problem is when i try to go to the http://www.domin.com instead of the http://domain.com i get the default web page for the machine IP (as specified in the website options section of Virtualmin for the domains)

If i make this domain the default website for the IP address then all works ok, But i do not want it to be the default for the IP as i run my own webpages/services on the box.

I have checked the dns entries against another domain that works ok and can not see any difference between them.

Any Ideas anyone?? Erik? ;)

eX Thanks in advance

Mon, 10/19/2009 - 00:06
tpnsolutions
tpnsolutions's picture

eX,

My first guess would be that you're missing a "ServerAlias" line in your Apache configuration file.

Could you post the snippet from your httpd.conf file that corresponds to the domain?

-- Peter

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 10/21/2009 - 02:25
eXcalibre

Thanks for the pointer Peter, Spot on... Found a missing entry for the www alias and added - all seems to be working now - just give DNS time to get updated around the web to confirm.

Thanks again eX

Wed, 10/21/2009 - 12:25
tpnsolutions
tpnsolutions's picture

eX,

No problem.

Update the thread if you have any further issues.

-- Peter

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked