[CentOS] www.mydomain.org and mydomain.org should resolve to the same IP

John R Pierce pierce at hogranch.com
Sat Jul 30 23:49:33 UTC 2011


On 07/30/11 9:55 AM, Rob Kampen wrote:
> Again, the standard practice in the industry is for name.org and
> www.name.org to be "tied" together. 

if the domain is primarily a website, for sure, in fact, many of my 
websites prefer domain.com to www.domain.com and in fact, I redirect the 
latter to the former...

example domain:

<VirtualHost  207.111.214.244>
         ServerName astronomy.santa-cruz.ca.us
         DocumentRoot /..../html
         ErrorLog /...../logs/error_log
         CustomLog /..../logs/access_log common
</VirtualHost>

<VirtualHost 207.111.214.244>
         ServerName astro.santa-cruz.ca.us
         ServerAlias www.astronomy.santa-cruz.ca.us 
www.astro.santa-cruz.ca.us
         RedirectMatch permanent /(.*) http://astronomy.santa-cruz.ca.us/$1
</VirtualHost>



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast




More information about the CentOS mailing list