uCosminexus Application Server, HTTP Server User Guide
Use the htpasswd command and register the user name and password in the password file. You can define access permissions to the directory and files in the host for a registered user name. For details on how to use the htpasswd command, see (1) Registering the user name and password in the password file and changing the password.
<Directory "<Cosminexus-installation-directory>/httpsd/htdocs">
AuthType Basic
AuthName "realm 1"
AuthUserFile "<Cosminexus-installation-directory>/httpsd/htdocs/.htpasswd"
Require valid-user
</Directory>
|
You can register and change the user name and password in the password file using the htpasswd command.
How to use the htpasswd command is described below:
htpasswd [-b][-c | -D] password-file-name user-name[password] |
If you specify the password file name, the user name to be registered, or the user name for which the password is to be changed, and run the htpasswd, the input of respective password is requested. If you enter the password twice, including the confirmation of password entry, the user name and the password of that user are registered in the password file:
C:\>"<Cosminexus-installation-directory>\httpsd\bin\htpasswd.exe" .passwd userxx ...1. New password: ...2. Re-type new password: ...3. Updating password for userxxx ...4. C:\> |
When deleting the registration, start the htpasswd utility by specifying the -D option, the password file name, and the user name that is to be deleted.
C:\>"<Cosminexus-installation-directory>\httpsd\bin\htpasswd.exe" -D .passwd userxx ...1. Deleting passwd for userxx ...2. C:\> |
All Rights Reserved. Copyright (C) 2012, Hitachi, Ltd.