[H-GEN] Virtual Webhosting / IP aliasing
James C. McPherson
James.McPherson at mq.edu.au
Thu Aug 19 19:22:06 EDT 1999
[ Humbug *General* list - semi-serious discussions about Humbug and
Unix-related topics. ]
Willie Yeo writes:
> [ Humbug *General* list - semi-serious discussions about Humbug and
> Unix-related topics. ]
>
> On Tue, 17 Aug 1999, James C. McPherson wrote:
>
> > You'll need cnames too - who's your friendly DNS admin?
>
> I am. The same machine is the primary DNS server, my secondary DNS
> server mirrors (or slave) the primary DNS.
> I inserted the domains into it, all pointing at the same IP
> address on the machine.
> When I did an nslookup, it is pointing to the correct IP address.
all fine and dandy.
> > For apache, use something similar to this:
> >
> > NameVirtualHost 137.111.176.200
> > <VirtualHost 137.111.176.200>
> > ServerName chef.proteome.org.au
> > ServerAdmin webmaster at chef.proteome.org.au
> > DocumentRoot /usr/local/httpd/htdocs
> > ErrorLog logs/chef-errors
> > </VirtualHost>
>
> > got that down? ok. try it yourself ;)
>
> I tried. But I got the Virtual Host all the time. And if I point
> any other virtual host, it all gets the first virtual host, not even the
> master host, which is the default apache server.
How about the following:
ServerName chef.proteome.org.au
NameVirtualHost 137.111.176.200
<VirtualHost 137.111.176.200>
ServerName chef.proteome.org.au
ServerAdmin webmaster at chef.proteome.org.au
DocumentRoot /usr/local/httpd/htdocs
ErrorLog logs/chef-errors
</VirtualHost>
<VirtualHost 137.111.176.200>
ServerName www.proteome.org.au
ServerAdmin webmaster at www.proteome.org.au
DocumentRoot /usr/local/httpd/www.proteome.org.au-root
ErrorLog logs/www-errors
</VirtualHost>
James
--
Unix Systems Administrator Phone: +61.2.9850.9418
Office of Computing Services Fax: +61.2.9850.7433
Macquarie University NSW 2109
AUSTRALIA
--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.
More information about the General
mailing list