Authorization

ApachからのBacis承認

1. Apachの設定

2. Passwordファイル作成

Add user for basic authorization

Make New file and first User

htpasswd -c /home/katsuya/script/App_Annie/config/passwd/passwords DearDaveMcClure

Add other users

htpasswd /home/katsuya/script/App_Annie/config/passwd/passwords DearDaveMcClure
-c  Create a new file.
-n  Don't update file; display results on stdout.
-m  Force MD5 encryption of the password.
-d  Force CRYPT encryption of the password (default).
-p  Do not encrypt the password (plaintext).
-s  Force SHA encryption of the password.
-b  Use the password from the command line rather than prompting for it.
-D  Delete the specified user.
  http://httpd.apache.org/docs/2.2/ja/howto/auth.html
<Location />
   AuthType Basic
   AuthName "Please fill in username/password"
   AuthUserFile /home/katsuya/script/App_Annie/config/passwd/passwords
   Require valid-user
 </Location>
最終更新:2012年07月17日 03:46