Once again I think this list is wonderful - twenty minutes
after posting my question I had the answer. So, many
thanks to Frank Weich <weich_at_rzpd.de> whose reply was so
wonderful it enabled me to set things up in about ten minutes
flat. I include his reply here in full :-
mark
> 1. Can I configure this box to support 2 IPs (I think this
> is possible but currently don't know how to do it)
try:
NUM_NETCONFIG="2"
NETDEV_0="tu0" (or whatever you use)
NETDEV_1="tu0"
IFCONFIG_0="ab.cd.ef.gh netmask xx.xx.xx.xx"
IFCONFIG_1="alias ij.kl.mn.op netmask yy.yy.yy.yy"
in your /etc/rc.config file.
> 2. If the box supports 2 IPs do they have to have the same
> netmask or can they be any valid IPs. e.g. will ab.cd.ef.gh
> and ij.kl.mn.op work on the same box?
AFAIK: yes (if you handle routing correctly)
> 3. If and when I get the box to recognize 2 IPs how the heck
> does that allow me to update my apache webservers such that
> I get :-
> http://site1.domain.ac.uk
> http://site2.differentdomain.ac.uk
> to both be recognised?
I don't know, how apache does that, but I know it works.
We use NCSA httpd and there is a quite good tutorial
how to realize multihome/virtual hosts - check:
http://hoohoo.ncsa.uiuc.edu/docs/tutorials/VirtualHost.html
apache should give quite as good support.
If you have problems with the different domain alias the
hostname in the second domain to a hostname in the first domain.
> 4. Can I do the same *without* requiring 2 IPs?
In that case (if you do it with an DNS alias) the http daemon
can't find out how it was called (because it get's only the IP
number) - therefore you can have only one homepage for both names :-(
Frank
--
Frank Weich Ressourcenzentrum/Primaerdatenbank o__
snail-mail: Heubnerweg 6, 14059 Berlin _,>/ _
phone: +49-30/32639-126 (_) \(_)
e-mail: weich_at_rzpd.de ^~^~^~^~^~
--
Mark S. Burrell ADAM Technical Officer
-------------------------------------------------------------
Historical and Critical Studies Dept. Tel:+44(0)191 2273704
University of Northumbria mailto:mark_at_adam.ac.uk
Newcastle upon Tyne, NE1 8ST, UK http://adam.ac.uk/~mark
-------------------------------------------------------------
Received on Tue Dec 03 1996 - 17:02:09 NZDT