Index: [Article Count Order] [Thread]

Date:  Fri, 23 Jan 2009 20:53:21 -0000
From:  "Martyn Bailey" <martyn (at mark) solis.co.uk>
Subject:  [coba-e:14856] Re: Site alias reflect domain?
To:  "Lucas Peyatt - Ohio Web Hosting & Development" <bluequartz (at mark) ohiowebhosting.net>,        coba-e (at mark) bluequartz.org
Message-Id:  <497A2E41.4395.6A62246@localhost>
In-Reply-To:  <20090123152723.M96034 (at mark) ohiowebhosting.net>
References:  <D66AFE8C16174CE5879712B4C9385191@howies>
X-Mail-Count: 14856

On 23 Jan 2009, at 10:34, Lucas Peyatt - Ohio Web Hosti wrote:

> CNAMES are evil! (To quote Brian, and they are)

Yeah, I've got that on my wall too :-)
(originally taken from userfriendly.org)
 
> You will need to edit the config file for apache to do what you want.
> They are located here "/etc/httpd/conf/vhosts". Edit the file
> belonging to your site (sitex). Open the file with pico, and comment
> out these two lines.
> 
> RewriteCond %{HTTP_HOST}                !^www.domain.tld(:80)?$ [NC]
> RewriteRule ^/(.*)                      http://www.domain.tld/$1 [L,R]

Ah, that's the jobbie - I should have thought of that - thanks Lucas!
(I used vi - not pico, does that make me a geek?)    ;-)

What, I wonder, are the broader consequences of making such a 
change - if any?

Thanks again.