Bind and Multiple VirtualHosts with Apache on 1 Static IP
Gary Stainburn
gary.stainburn at ringways.co.uk
Fri Oct 15 11:59:28 UTC 1999
Hi Ken,
I've just joined the newsgroup, but you don't appear to have received a
response, so here's my 2p's worth.
The Virtual host settings in Apache are your problem. You have set up 2
virtual hosts both with the same name, that of the i.p. address. What you
need to do is change them to the domains they'll service, i.e.
<virtualhost www.pyrofx.com>
.....
</virtualhost>
<virtualhost www.fabricationsgifts.com>
.....
</virtualhost>
All the DNS does is convert the two names to the one I.P. address, and then
have not further purpose.
Hope this helps,
Gary
Ken Purcell <kenpurcell at directlink.net> wrote in article
<CB6M3.7437$bj6.184072 at news4.giganews.com>...
> Hi all,
>
> as." How do I set this up?
[snip]
> The VirtualHost portion of my apache server file below:
>
> NameVirtualHost 216.2.128.35
> <VirtualHost 216.2.128.35>
> ServerAdmin kenpurcell at directlink.net
> DocumentRoot "d:/Apache/htdocs/www/pyrofx"
> ServerName www.pyrofx.com
> ErrorLog logs/pyrofx-error.log
> CustomLog logs/pyrofx-access.log combined
> </VirtualHost>
> <VirtualHost 216.2.128.35>
> ServerAdmin kenpurcell at directlink.net
> DocumentRoot "d:/Apache/htdocs/www/fabrications"
> ServerName www.fabricationsgifts.com
> ErrorLog logs/fabrications-error.log
> CustomLog logs/fabrications-access.log combined
> </VirtualHost>
>
> Does the requesting browser get a URL that is passed through DNS to the
> webserver to determine what
> pages to serve up? Do I need to have one DNS record with aliases for
each
> domain? I would at some time
> like to setup Bind to do my own DNS but first things first. I obviously
> need to walk before running. Please Help.
>
> regards,
>
> Ken Purcell
>
>
>
More information about the bind-users
mailing list