| Evan Summers on Mon, 26 Jan 1998 13:56:49 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: virtual host |
Dear Geoff
> I am trying to setup virtual hosts and I am struggling alot anyone ever
> done this before,
Yes, you must add IP aliases, which I do in file /etc/sysconfig/
network-scripts/ifup-vh (which I add into /etc/rc.d/init.d/network):
/sbin/ifconfig eth0:0 160.124.114.7
/sbin/route add -host 160.124.114.7 dev eth0:0
/sbin/ifconfig eth0:1 160.124.114.8
/sbin/route add -host 160.124.114.8 dev eth0:1
etcetera...
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).
Regards
Evan
______________________Evan Summers PhD * New Product Development Manager
________________Universal Computer Services * Johannesburg, South Africa
____________ebs@xxxxxxxxx * telephone +27 11 339-6111 * http://ucs.co.za