[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] RaQ 2 - name-based
- Subject: RE: [cobalt-users] RaQ 2 - name-based
- From: "Dan" <dan@xxxxxxxxxxxxx>
- Date: Mon Sep 11 10:23:43 2000
> > That's how we do it. About the only time we assign an
> individual IP address
> > is when a customer wants multiple domains all pointing to the
> same home page.
> > That way, all we have to do is set up DNS records for the additional
> > domains. Works just fine.
>
> You don't need IP#-based hosting to do this either, as long as you're
> willing to make a small edit to the /etc/named/conf/named.conf file.
> The details have been discussed on this list before, but the short
> answer is: just create a ServerAlias line (we create two, one with the
> www and one without) in the virtual domain block.
>
The only difference there I believe would be, (correct me if I'm wrong), the
"alias" domain name would still show in the browser window using that
method. e.g., if the main site was www.domain.com and the "extra" domain was
www.whatever.com, pointing www.whatever.com to the IP of www.domain.com on a
RaQ using just DNS and not making any changes to the httpd.conf will cause
the domain to show www.domain.com in the address bar instead of
www.whatever.com.
This might be a problem with some CGI scripts that are set to only work for
www.domain.com and not www.whatever.com. This only seems to work on the same
RaQ server since pointing the DNS to the IP of a site off of the RaQ leaves
that domain name in the address bar unless changes to the httpd.conf file
are made.
--
Dan Kriwitsky