加入我的最愛

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

下載排行
《魔獸世界:地心之戰》11.0.7版本更新「海妖島」2025 《決勝時刻®:黑色行動6》2024 《黑色沙漠 PC & MOBILE》2024 《救世者之樹:新世界》2024
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 ( 406 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 541 )


<<First <Back | 6185 | 6186 | 6187 | 6188 | 6189 | 6190 | 6191 | 6192 | 6193 | 6194 | 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