加入我的最愛

My ipV6

Apache htaccess網頁認證設定 - Linux Servermirror.tw下載點 Fedora core 21 ubuntu 12.04 Apache htaccess網頁認證設定 - Linux Servermirror.tw下載點 FireFox 34 OpenOffice 4.0 CentOS 7 Apache htaccess網頁認證設定 - Linux Servermirror.tw下載點 Apache MySQL PHP Eclipse

下載排行
決勝時刻®:現代戰爭 III 2024 《Gran Saga:格蘭騎士團》2023 《暗黑破壞神® IV》2023 《黑色沙漠 MOBILE》2023
Facebook WFH
Apache htaccess網頁認證設定 - Linux Servermirror.tw下載點

Download more...


Search 


Wednesday, October 16, 2013, 08:15 - Blog網誌
Posted by Administrator
Apache htaccess網頁認證設定 - Linux Server


網頁目錄下編輯檔案 .htaccess
AuthType Basic
AuthName "mirror tw have to authenticate"
AuthUserFile /etc/httpd/.htpasswd
Require valid-user


新增密碼檔及帳戶 指令:
htpasswd -c /etc/httpd/.htpasswd username
輸入二次密碼

測試:
瀏覽器開啟網頁必須輸入帳號密碼
修改httpd.conf
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

.htaccess其它應用
php_value include_path ".:/usr/local/lib/php"
php_flag display_errors Off
php_value upload_max_filesize 2M
php_value auto_prepend_file "../auto_prepend.php"

add comment ( 333 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 480 )


<<First <Back | 5701 | 5702 | 5703 | 5704 | 5705 | 5706 | 5707 | 5708 | 5709 | 5710 | Next> Last>>


Release


MD5 checkMd5Sum


Driver

- Speed Test-







mirror.tw
mirror.tw traffic

Traffic
traffic

forum
News / software

get DVD
Open Source
Live CD,DVD,CD