[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] multiple domains to 1 virtual site
- Subject: RE: [cobalt-users] multiple domains to 1 virtual site
- From: "Dan" <dan@xxxxxxxxxxxxx>
- Date: Tue Feb 22 07:56:24 2000
> I have setup the DNS server on our RaQ2 and have created the
> necessary information for our registered domains.
>
> 1. An "A" record for domain.co.za pointing to ip address
> 2. An "A" record for www.domain.co.za pointing to ip address
> 3. An "MX" record for mail
> 4. A Secondary record pointing to our ISP's DNS server
>
> What must I do to point multiple domains to a single virtual web site?
>
>
AFAIK, the only way to do this, is if the virtual site was on a separate IP.
Otherwise, a .cgi script as suggested here recently.
Save below as index.cgi:
#!/bin/sh
echo "Location: http://www.domain.com/"
echo ""
CHMOD 755 index.cgi
Then put a .htaccess file in that directory:
Options FollowSymLinks Includes ExecCGI
DirectoryIndex index.cgi
AddHandler cgi-script .cgi .pl
That script works for me here: http://www.tamiamitrail.com/
--
Dan Kriwitsky