[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] same domain name, different host name question



On Sunday 15 September 2002 08:48, jale@xxxxxxxxxx wrote:
> >>I have a domain www.domain.com
> >>I want to have another (on the same or a different IP) jale.domain.com
> >>
> >>When I try to create the new site with host name jale and domain name
> >>domain.com it tells me:
> >>Another site is already aliased to the domain domain.com
> >>
> >>I thought this should be valid, 2 machine/host names on the same domain.
> >>Am I missing the boat on something?
> >
> >Hi - before anyone jumps on me and says LITB, awesome Gerald gave me the
> >book-reference :)
>
> I have all of this setup and it works fine except for one thing - I created
> a domain.conf file that looks like:
>
> <VirtualHost 123.123.123.123>
> ServerName www.jale.domain.com
> ServerAdmin siteadminname
> ServerAlias jale.domain.com
> DocumentRoot /home/sites/www.domian.com/users/jale/web
> RewriteEngine on
> RewriteCond %{HTTP_HOST}    !^123.123.123.123(:80)?$
# RewriteCond %{HTTP_HOST}    !^www.jale.domain.com(:80)?$
# RewriteRule ^/(.*)    http://www.jaledomain.com/$1 [L,R]
 RewriteOptions inherit
> AddHandler cgi-wrapper .cgi
> AddHandler cgi-wrapper .pl
> </VirtualHost>
>
> - the only thing I don't like is that when I goto jale.domain.com the URL
> changes to www.jale.domain.com - it all works, just looks funny when you go
> to the page. Anything I can do about it? If it is a big deal I'll just
> leave it, if easy I'd do something about it.
>
Note the two lines I comented out (#) above 
# RewriteCond %{HTTP_HOST}    !^www.jale.domain.com(:80)?$
# RewriteRule ^/(.*)    http://www.jaledomain.com/$1 [L,R]

Then it won't change to 'www'

Gerald
-- 
http://frontstreetnetworks.com         http://raqware.com
229 Front Street, Ste C, New Haven, CT 06513-3203
                           Phone: 203-785-0699