Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  9 Sep 96 09:10:12 -0500
From:      Ben Black <black@gage.com>
To:        Rob Buchanan <rob@www.odod.ohio.gov>
Cc:        FreeBSD-questions@freebsd.org
Subject:   Re: Multi host web server on FreeBSD
Message-ID:  <9609091410.AA12177@squid.gage.com>
In-Reply-To: <32344453.875@www.odod.ohio.gov>
References:  <32344453.875@www.odod.ohio.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
ifconfig ep0 inet ip_address alias

route add ip_address localhost


replace ep0 with the name of the interface you wish to alias.  replace
ip_address with the ip address you want to use for the virtual server.  if
you are using 2.1.0 then you will need to execute the ifconfig twice (the
first one will generate an error...just ignore it).


put those lines in your rc.local before you start the apache server.  you
can do that as many times as you want to continue adding virtual hosts.



b3n

black@cypher.net



ps - yes, i will be putting up the ip aliasing howto this week...was on
vacation last week.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9609091410.AA12177>