User guide

Setting the IP Access Control
3-11
Setting the IP Access Control
For IP access control, you can allow only specified hosts to make access to directories under a
specified directory using the following directives in the environment definition file (httpd.conf) of
Interstage HTTP Server. By doing this, any access from Web browsers that are on unspecified hosts
are rejected.
Example
To allow a specified host '192.168.1.1' to access directories under a specified directory
"C:\Interstage\F3FMihs\htdocs\secret":
# Directory
<Directory "C:/Interstage/F3FMihs/htdocs/secret">
# Specify the order in which the directives are applied
Order deny,allow
# Specify the access which is prohibited
Deny from all
# Specify the access which is allowed
Allow from 192.168.1.1
</Directory>
Example
To allow a specified host '192.168.1.1' to access directories under a specified directory
"/opt/FJSVihs/htdocs/secret":
# Directory
<Directory "/opt/FJSVihs/htdocs/secret">
# Specify the order in which the directives are applied
Order deny,allow
# Specify the access which is prohibited
Deny from all
# Specify the access which is allowed
Allow from 192.168.1.1
</Directory>
Note
When IP access control is set for the Servlet service application URL, the <Directory> section of the
above example cannot be used. Use the <Location> section.
Relating Directives
Allow
Deny
<Directory>
Order