On Tue, 22 Oct 2002, pworboys wrote: > I have an apache server based on RH7.3. A single network adaptor is > bound to 2 addresses, i.e. 192.168.1.1 (eth0) and 192.168.1.2 (eth0:1) > > As expected, apache will bind the http process to both network addresses > on port 80. > > What I need to determine is how to stop httpd from binding to the second > address 192.168.1.2 on eth0:1, so I can port forward the second address > port 80 to a different system, using some port redirection software. > > I have a kludge work around, but feel there maybe a better way to > facilitate this configuration. > > What I have done is: bind apache to listen on a random port > 1023 which > will never be used. By using the 'Listen' directive tell apache to > listen to the single IP address, ie: Listen 192.168.1.1:80.
You might want to have a look here: http://httpd.apache.org/docs/bind.html The command you're looking for specifically is BindAddress as opposed to Listen. BindAddress defines the default IP to listen on (by default * / all addresses). If you setup 192.168.1.1 as your bind address, then you can do whatever you wish with 192.168.1.2 and port 80. If you need to bind to more addresses than just 192.168.1.1, throw in some extra Listen statements. Enjoy! Andypoo. .. It would seem I'm back :-) -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
