[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Aliasing domains (help needed)
- Subject: Re: [cobalt-users] Aliasing domains (help needed)
- From: "Charles Williams \( CEO ACNS \)" <cwilliams@xxxxxxxxxxxxxxx>
- Date: Tue Mar 27 02:53:41 2001
- Organization: Accent Computer & Network Services
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: <tob@xxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 27, 2001 4:58 PM
Subject: [cobalt-users] Aliasing domains (help needed)
> How do I set up 3 domains so that 1 domain exists physically on the RAQ4
> and the other two domains simply point to it.
> Right now I have the following set up as a site on the raq.
> www.domain1.com
> domain1.com
> Then via DNS I point www.domain2.com and domain2.com to domain1's IP and
> have a CNAME that points www.domain2.com to www.domain1.com.
>
> The same is setup for domain3.com .
>
> The problem is that the site without the "WWW" don't work properly. Is
> there a way to setup a CNAME for these sites or am I way off track.
Here's what I did. do an in address on the other domains to point to the
main domain. Then in your httpd.conf file add 2 virt servers pointing to
the main about so:
<VirtualHost 000.111.222.333>
ServerName www.domian2or3.com
ServerAdmin admin
DocumentRoot /home/sites/site##/web
ServerAlias domain1.com
RewriteEngine off
RewriteCond %{HTTP_HOST} !^000.111.222.333(:80)?$
RewriteCond %{HTTP_HOST}
!^www.commercialroofingsystems.com(:80)?$
RewriteRule ^/(.*) http://www.domain1.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site#/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site#/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
and then again for the 3rd domain. It will take a bit for propagation but
no biggie.
This worked fine for me and should do you ok as well.
Chuck
>
> Thanks for any help that you can provide.
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Tom O'Brien
> Golf Link, Inc.
> Internet Services for Golf
> http://www.golflink.com
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -