www or not to www

I am new to open source.
With virtualmin or webmin is there a way to make sure that both urls:

http://mysite.com

and

http://www.mysite.com

can be recognized?

Thanks

Centos 5
Virtualmin pro
joomla

Howdy,

Virtualmin attempts to set that up for you.

If you’re using your own server as a nameserver (ie, the DNS for your domain points to your server), then it should work out of the box.

If you’re using another DNS server, then it’s just a matter of setting up DNS records for mysite.com and www.mysite.com, and making sure they both point to your server.

-Eric

Thank you for the quick reply