Limited IHS (Apache) to Specific IPs

Mindwatering Incorporated

Author: Tripp Black

Created: 06/27/2007 at 09:24 AM

 

Category:
Websphere
IHS / IBM HTTP Server

Default:
IHS/Apache's httpd.conf file is set with:
Listen 80

This causes server to listen on ALL IPs for all adapters available.
(This is usually desired unless there is another web server that you also want to listen on port 80.)

To restrict IHS (Apache) to specific IP change Listen to:
Listen 192.168.0.200:80
or
Listen 192.168.0.200
Port 80

These directives will only accept messages addressing port 80 on the 192.168.0.200 IP address.

You can also specifiy multiple IPs for listening:
Listen 192.168.0.200
Listen 192.168.0.202
Listen 192.168.2.200
Port 80

or even multiple ports on these address, like ports 80 and 8081
Listen 192.168.0.200
Listen 192.168.0.202
Listen 192.168.2.200
Port 80, 8081

http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen

Note: appears to be broken for WAS 6.1.

previous page

×