Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - PROGRAMMER GUIDE TO SERVLETS Podręcznik Użytkownika Strona 107

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 328
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 106
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
Przeglądanie stron 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 327 328

Komentarze do niniejszej Instrukcji

Brak uwag