iT邦幫忙

0

怎麼讓某個Web目錄需要帳號密碼才可進入?

如題,我想要讓
xxx. com/datacenter/
目錄需要帳號密碼才可進入
我是使用Apache+php+phpmyadmin+windows7
之後會移到Windows server 2012
也請告訴我Server設置帳號密碼才可進入目錄的方式
感激不盡^_^

unethost iT邦新手 4 級 ‧ 2014-02-26 00:13:06 檢舉
apache的話,就是直接修改.htaccess 產生器
===========================================================

http://unethost.com -> 網管工具 -> 免費工具介紹及連結 ->

http://www.htaccesseditor.com/tc.shtml -> Basic認證模式

在根據 step 1 + step 2 去設置。
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

14
wiseguy
iT邦超人 1 級 ‧ 2013-05-26 00:38:25
最佳解答

既然是使用 Apache,如果用 2.4.x 版,請參考這裡
http://httpd.apache.org/docs/2.4/howto/auth.html
如果是用 2.2.x 版,請參考這裡
http://httpd.apache.org/docs/2.2/howto/auth.html

我要發表回答

立即登入回答