• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 實戰apache用戶驗證

    發表于:2007-05-25來源:作者:點擊數: 標簽:
    本文主要介紹了包含在apache發行版本內的用戶驗證模塊---auth,auth_db 驗證模塊的使用是很簡單的就以下三步 1、創建用于保存用戶/密碼的文件 2、配置apache以使用那個文件做用戶驗證 3、可選的創建一個組文件 1、apache_1.3.28的安裝。 shell./configure--pr

    本文主要介紹了包含在apache發行版本內的用戶驗證模塊---auth,auth_db
    驗證模塊的使用是很簡單的就以下三步
    1、創建用于保存用戶/密碼的文件
    2、配置apache以使用那個文件做用戶驗證
    3、可選的創建一個組文件
    1、apache_1.3.28的安裝。
    shell>./configure --prefix=/www --disable-module=all --enable-module=aclearcase/" target="_blank" >ccess --enable-module=so --enable-shared=max --enable-module=auth_anon --enable-module=auth --enable-module=auth_db  --enable-module=auth_dbm --enable-module=digest --enable-module=alias --enable-module=log_config --enable-module=dir --enable-module=mime
    shell>make
    shell>make intall
    2、創建需要的目錄
    mkdir /www/auth
    mkdir /www/authdb
    chown nobody:nobody /www/auth /www/authdb

    3、編輯httpd.conf
    Alias /auth /www/auth
    Alias /authdb /www/authdb
    <Directory /www/auth>
       AllowOverride AuthConfig
    </Directory>
    <Directory /www/authdb>
      AllowOverride Authconfig
    </Directory>
    AuthType Basic
    4、在/www/auth,/www/authdb中分別創建.htaccess文件
    vi /www/auth/.htaccess
    AuthName "password file auth"
    AuthUserFile /www/authfile/password
    AuthGroupFile /www/authfile/group
    Require group test
    vi /www/authdb/.htaccess
    AuthName "db auth"
    AuthDBUserFile /www/authfile/dbuser.dat
    Require username1

    5、創建密碼文件
    /www/bin/htpasswd -c /www/authfile/password username1
    /www/bin/htpasswd /www/authfile/password username2
    創建組文件
    echo "test: username1 username2" >> /www/authfiile/group
    6、創建密碼數據庫用于數據庫驗證
    /www/bin/dbmmanage /www/authfile/dbuser.dat adduser username1

     seacaptain 回復于:2003-09-25 17:45:42
    自己頂一下

     flighttop 回復于:2003-09-26 00:56:44
    Up!

     doudoutu 回復于:2003-09-27 22:43:57
    good

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>