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

RE: [cobalt-users] CNAME problems on RAQ3



> I tried to create a CNAME record on a RaQ3 in order to achieve the
> following:
>
> www.firstdomain.tld is a virtual domain,
>
> www.seconddomain.tld is a second virtual domain,
>
> The purpose of the CNAME:
>
> We need them two domains to share a directory on the file system
> (cgi), the
> files will be the same, but the look and feel as well as the
> domain must be
> different for each site.
>

> Among other thing we have tried:

> 1) adding
> include /etc/httpd/conf/otherinfo.conf
> to the httpd.conf

> and adding the otherinfo.conf file with

> <VirtualHost 196.40.46.91>
> ServerName ww1.seconddomain.com
> ServerAdmin admin
> DocumentRoot /home/sites/site2/web
> </VirtualHost>

> 2) Changing the CName to an A record and pointing it to the IP.

> We are still getting the same results.  Any help will be greatly
> appreciated.  Specially advice on if the CNAMEs on Cobalts are completely
> useless and if there is a workaround.  Again thanks.


I'm not sure why this isn't working for you. Here's an example of what I use
on the Cobalt in my "include.conf" file:
<VirtualHost 209.196.37.116>
ServerName www.domain.com
ServerAdmin admin
DocumentRoot /home/sites/site3/web/name
ServerAlias domain.com
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
# Uncomment next 2 lines if you want to use SSI
#AddHandler server-parsed .shtml
#AddType    text/html     .shtml
</VirtualHost>

I believe, if you check the Apache docs, you can configure a scriptalias
directory in the srm.conf so that using /cgi-local/ would point to another
cgi-bin on the server.
--
Dan Kriwitsky