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? :wink:

eX
Thanks in advance

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

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

eX,

No problem.

Update the thread if you have any further issues.

– Peter