[H-GEN] Apache and Virtual Hosts

Jason McDonald jasonm at csee.uq.edu.au
Thu Dec 9 20:16:39 EST 1999


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]


Well I could be wrong (I'm reasonably new at Apache configuration), but if
both your servers have the same IP (which according to nslookup they do),
how will your server tell which one is being accessed?  Surely you need
two different IP addresses so that Apache can work out which set of
pages to serve.

> I am including an exert from the httpd.conf so people can see what I am
> doing. Any assistance is appreciated.
> The machines IP is 130.102.32.23 and it's name is stevens.psy.uq.edu.au
> also the name fire.humbug.org.au resolves to it :)
> 
> NameVirtualHost 130.102.32.23
> 
> <VirtualHost 130.102.32.23>
>         ServerAdmin nikolai at humbug.org.au
>         DocumentRoot /var/virt/fire.humbug.org.au
>         ServerName fire.humbug.org.au
>         ErrorLog /var/log/apache/fire.humbug.org.au-err
>         TransferLog /var/log/apache/fire.humbug.org.au-trans
> </VirtualHost>
> 
> <VirtualHost 130.102.32.23>
>         ServerAdmin nikolai at humbug.org.au
>         DocumentRoot /var/www
>         ServerName stevens.psy.uq.edu.au
>         ErrorLog /var/log/apache/error.log
>         TransferLog /var/log/apache/transfer.log
> </VirtualHost>

J.
--
Random Signature #292:

COBOL:
	An exercise in Artificial Inelegance.


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list