[TriLUG] Running httpd but not on a certain ip address

Rodent of Unusual Size Ken.Coar at Golux.Com
Wed Sep 29 08:06:44 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----

Matt Frye wrote:

>> I think you need to use the Listen directive to specify that the
>> host listens on all the IP's except the one you want left free.
> 
> Thanks Phil.  I think it's BindAddress I need...

ack!  no.  bindaddress has been deprecated for years.  and it does the
opposite of what you appear to want; it would require you to run a
separate httpd instance for *each* address, rather than one instance
handling all (except the one you want to omit).

what you want is definitely Listen.  if you have addresses
10.0.0.[1-9] and you want httpd to be active on port 80 for
all except 10.0.0.3,

Listen 10.0.0.1
Listen 10.0.0.2
Listen 10.0.0.4
Listen 10.0.0.5
Listen 10.0.0.6
Listen 10.0.0.7
Listen 10.0.0.8
Listen 10.0.0.9

and make sure you have *no* 'Listen :80' or other listen statements.

apache 1.3 or 2.0?
- --
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Ken.Coar.Org/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBQVqlU5rNPMCpn3XdAQHSlgQApD0blp+UsLncVcmBSyGRg5qQ1m5kvVtM
W9ztP8Wt36vq66NzIUj/xNHw60xfUcXUCI6DP4SbPG59unlAXZLw70rYX0g0N66S
+WQjJSB+p4ETqArqQOTFCt8JPg9SaLC4LBZxK06oP3wqpbnyOkmxkLJhRwI0V80u
7JUx1OV//uQ=
=XaOq
-----END PGP SIGNATURE-----



More information about the TriLUG mailing list