實戰apache使用者驗證(轉)
實戰apache使用者驗證(轉)[@more@]本文主要介紹了包含在apache發行版本內的使用者驗證模組---auth,auth_db驗證模組的使用是很簡單的就以下三步1、建立用於儲存使用者/密碼的檔案2、配置apache以使用那個檔案做使用者驗證3、可選的建立一個組檔案1、apache_1.3.28的安裝。shell>./configure --prefix=/www --disable-module=all --enable-module=access --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=mimeshell>makeshell>make intall2、建立需要的目錄mkdir /www/authmkdir /www/authdbchown nobody:nobody /www/auth /www/authdb3、編輯httpd.confAlias /auth /www/authAlias /authdb /www/authdbAllowOverride AuthConfig AllowOverride Authconfig AuthType Basic4、在/www/auth,/www/authdb中分別建立.htaccess檔案vi /www/auth/.htaccessAuthName "password file auth"AuthUserFile /www/authfile/passwordAuthGroupFile /www/authfile/groupRequire group testvi /www/authdb/.htaccessAuthName "db auth"AuthDBUserFile /www/authfile/dbuser.datRequire username15、建立密碼檔案/www/bin/htpasswd -c /www/authfile/password username1/www/bin/htpasswd /www/authfile/password username2建立組檔案echo "test: username1 username2" >> /www/authfiile/group6、建立密碼資料庫用於資料庫驗證/www/bin/dbmmanage /www/authfile/dbuser.dat adduser username
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8225414/viewspace-938027/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 實戰8-滑塊驗證
- 實戰表單驗證學習
- Apache Tika實戰Apache
- vue 實戰表單驗證規則Vue
- nginx使用者驗證Nginx
- Apache2 使用auth_digest驗證Apache
- node學習---jwt實現驗證使用者身份JWT
- Python實現簡單驗證碼的轉文字Python
- 旋轉圖片驗證
- css揭祕實戰技巧 - 使用者體驗[五]CSS
- [實戰驗證] http快取(無代理伺服器)HTTP快取伺服器
- Django高階表單處理與驗證實戰Django
- 基於 CNN 的驗證碼破解實戰專案CNN
- Apache Kafka 程式設計實戰ApacheKafka程式設計
- Play框架如何驗證使用者框架
- easy-captcha實現驗證碼驗證APT
- C#實現JWT無狀態驗證的實戰應用C#JWT
- 身份驗證會影響使用者體驗嗎?
- 從零到一,全面掌握Apache DolphinScheduler發版流程,實戰派經驗分享!Apache
- JWT驗證使用者資訊功能JWT
- 實戰4-x軸y軸,過點觸驗證碼
- koa2,koa-jwt中token驗證實戰詳解JWT
- 百度旋轉驗證碼
- 深入Django:使用者認證與許可權控制實戰指南Django
- 模擬使用者登入,內含驗證碼驗證和request等操作
- Django實戰1-許可權管理功能實現-03:使用者認證Django
- Laravel 與 jwt 多表(多使用者端)驗證隔離的實現LaravelJWT
- Apache Hudi + AWS S3 + Athena實戰ApacheS3
- apache common pool2原理與實戰Apache
- Laravel 驗證類 實現 路由場景驗證 和 控制器場景驗證Laravel路由
- web前端入門到實戰:css騷操作之表單驗證Web前端CSS
- lumen驗證類 實現控制器場景驗證
- Django實現驗證碼Django
- 晶片驗證的相關概念(轉載)晶片
- gin自定義驗證器&轉化中文
- 實驗13.Nat轉發telnet實驗
- Apache Kafka的4個混沌工程實驗 | IDCFApacheKafka
- 【轉】微服務實戰微服務
- Oracle實驗(02):轉換 & 轉譯Oracle