| Robert Nusser on Mon, 26 Jan 1998 14:09:30 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: virtual host |
Hi Evan,
> Then in /etc/httpd/conf/httpd.conf you should add for example,
>
> <VirtualHost vca.sport.org.za>
> ServerAdmin dad@xxxxxxxxx
> DocumentRoot /home/httpd/html/vca
> ServerName vca.sport.org.za
> ErrorLog logs/vca-error_log
> TransferLog logs/vca-access_log
> </VirtualHost>
>
>
> where the virtual host, in this example vca.sport.org.za
> is mapped to 160.124.114.7 in the DNS (reverse as well).
>
Actually if you configure the vhost as you have above you don't need
to bring up any extra IP addresses on the machine. You would point
the DNS to the IP address of the machine and using HTTP 1.1 the client
sends the requested URL which the server finds in the httpd.conf
Actaully now that I think of it your way of adding a vhost does not
conform to HTTP 1.0 where the IP address must be specified in the
vhost information. So if you are going to use IP addresses which only
need be if you want to cater for the old browsers you would use:
<VirtualHost 196.38.13.250>
DocumentRoot /vhosts/glug
ServerName www.glug.co.za
LogFormat "%h %l %u %t \"%r\" %s %b \"
ServerAdmin robert@xxxxxxxx
</VirtualHost>
(I just made up the IP)
Regards,
Robert
====================================================================
Robert Nusser \ e-mail : robert@xxxxxxxx
The Internet Solution \ Tel : +27-11-447-5560
WebCo Services Systems Administrator \ Fax : +27-11-447-4250
====================================================================