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

Re: [cobalt-users] Domain aliases on a cobalt



for the problem of the two domains showing the same content, I had found
two solutions on Cobalt Support KnowledgeBase
http://emea.cobalt.com/support/kb/index.php3

- The first :
login in telnet,
cd to your second domain directory :

> cd /home/sites/www.iris-advies.com
>

rm or better backup the web directory :

> mv web web.bak
>

create a symbolic link to the web directory of your first domain :

> ln -sin /home/sites/www.iris-advies.nl/web web
>
chown  /home/sites/www.iris-advies.com/web to the same owner as
/home/sites/www.iris-advies.nl/web (this is for avoid cgi-wrap errors)

but there is a problem if you use webalizer : by default webalizer writes
the stats files into the subdirectory stats of each website e.g. :
/home/sites/www.iris-advies.nl/web/stats but after the previous modif, the
/home/sites/www.iris-advies.com/web/stats will be the same so the second
domain analysed will recover the datas of the first one I had to modify
the /etc/cron.daily/webalizer.pl script to avoid this. If you don't use
webalizer, there is no problem.

this is the copy og the second solution :

> What you would need to do is edit your httpd.conf file in the /etc/httpd/conf directory. In this file you'll see a section that
>                    looks like
>
>
>                    ServerName big.bad.net
>                    ServerAdmin admin
>                    ServerAlias bad.net
>                    DocumentRoot /home/sites/site7/web
>                    ...
>                    ...
>
>
>                    In your situation, you would look for the IP of the primary domain. Add this to the end
>
>                    ServerAlias
>
>                    Replace  with the domain you want to point to the primary domain. Then type
>
>                    /etc/rc.d/init.d/httpd.init stop
>                    /etc/rc.d/init.d/httpd.init start
>
>                    as root at the command prompt to restart the web server.
>
>                    Also, configure your DNS records to have an 'A' record for your secondary domian
>                    to point to the IP of the primary domain. Do not use CNAMEs as they will cause
>                    problems with the server.
>

for the email, in the Cobalt Site Management, you can configure your
second user account eg whoever2 to have  whoever as alias, and his email
to be forwarded to
whoever@xxxxxxxxxxxxxx

Emiliano wrote:

> Hello all,
>
> I have two domains that I want to host on a single Cobalt account. The
> first domain, iris-advies.nl, is already hosted on the cobalt. I now
> want to map iris-advies.com seamlessly on tha account, so
> www.iris-advies.nl/whatever/here would show the same as
> www.iris-advies.com/whatever/here (without using a redirect), and
> whoever@xxxxxxxxxxxxxx would land in the same mailbox as
> whoever.iris-advies.com, even if 'whoever' is an alias.
>
> I have search the mailarchives and this was actually discussed before
> but I didn't find a positive resolution. I can, of course change stuff
> in the config files by hand (add a ServerAlias, and entries to
> /etc/{majordomo,virtusertable,sendmail.cw}, but given the way Cobalts
> usually work, I fear these will be overwritten when anything is
> changed through the administration scripts.
>
> I don't know exactly what version Cobalt this is (it's not mine, my
> stuff is just hosted there), but /etc/cobalt-release says 'release 5.0
> (Pacifica)'.
>
> Thanks,
> Emile
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users