to have a webserver www.mydomain.com
anwser as BOTH:
http://www.mydomain.com/ and http://mydomain.com/
what do I need:
DNS A record:
mydomain.com. IN A xxx.xxx.xxx.xxx
Plus, of course, your www.mydomain.com. record like:
www.mydomain.com. IN CNAME mydomain.com.
OR
www.mydomain.com. IN A <same IP as mydomain.com points to>
in httpd.conf, can I have BOTH entries in a single vhost entry like this ?
<VirtualHost xxx.xxx.xxx.xxx:80> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/mydomain.com/www ServerName www.mydomain.com ServerName mydomain.com ErrorLog path/to/log CustomLog path/to/log </VirtualHost>
*if* I need two <VHost> sets, can I have SAME log in both ?
You can have it all in one VirtualHost entry. Instead of:
ServerName mydomain.com
.. change that to:
ServerAlias mydomain.com
You can add more aliases after the "mydomain.com" too. eg:
ServerAlias mydomain.com somethingelse.mydomain.com hisdomain.com
HTH, Gonzalo
-- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
