Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - PROGRAMMER GUIDE TO SERVLETS Guide de l'utilisateur Page 107

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 328
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 327 328

Commentaires sur ces manuels

Pas de commentaire