tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Mark Burrell <mark () adam ! ac ! uk>
To: tru64-unix-managers
Subject: ANSWER : Using Multiple IPs for webserving?
Date: Tue, 03 Dec 1996 11:50:59 +0000	[thread overview]
Message-ID: <96076343421379.tru64-unix-managers.marc@archive.invalid> (raw)

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@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@rzpd.de                        ^~^~^~^~^~




-- 
Mark S. Burrell                        ADAM Technical Officer
-------------------------------------------------------------
Historical and Critical Studies Dept.   Tel:+44(0)191 2273704
University of Northumbria              mailto:mark@adam.ac.uk
Newcastle upon Tyne, NE1 8ST, UK      http://adam.ac.uk/~mark
-------------------------------------------------------------

                 reply	other threads:[~1996-12-03 11:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox