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

  • 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 101
Chapter 3: Authentication and Access Control for the Interstage HTTP Server
3-6
Editing the Environment Definition File
To allow the users whose password has been registered in the password file to access directories under
a specified directory, use the following directives in the environment definition file (httpd.conf) of
Interstage HTTP Server. By doing this, names and passwords of users who make access requests from
Web browsers are checked and any access attempts from users whose names and passwords have not
been registered in the password file are rejected.
Example
To allow the users whose names and passwords have been registered in the password file
"C:\Interstage\F3FMihs\conf\password.txt" to access directories under a specified directory
"C:\Interstage\F3FMihs\htdocs\users\name":
# Directory
<Directory "C:/Interstage/F3FMihs/htdocs/users/name">
# Password file
AuthUserFile "C:/Interstage/F3FMihs/conf/password.txt"
# Title displayed on the authentication window
AuthName "Secret directory"
# Type of authentication
AuthType Basic
# Rule to be applied for user authentication
Require valid-user
</Directory>
Example
To allow the users whose names and passwords have been registered in the password file
"/opt/FJSVihs/conf/password.txt" to access directories under a specified directory
"/opt/FJSVihs/htdocs/users/name":
# Directory
<Directory "/opt/FJSVihs/htdocs/users/name">
# Password file
AuthUserFile "/opt/FJSVihs/conf/password.txt"
# Title displayed on the authentication window
AuthName "Secret directory"
# Type of authentication
AuthType Basic
# Rule to be applied for user authentication
Require valid-user
</Directory>
Note
When user authentication is set for the Servlet service application URL, the <Directory> section of the
above example cannot be used. Use the <Location> section.
Vue de la page 101
1 2 ... 97 98 99 100 101 102 103 104 105 106 107 ... 327 328

Commentaires sur ces manuels

Pas de commentaire