Re: [問題]如何用htpasswd 這支程式建立網頁密碼??

看板Web_Design作者 (無)時間17年前 (2008/06/15 00:27), 編輯推噓1(104)
留言5則, 1人參與, 最新討論串3/3 (看更多)
大大: 我實在太笨了,我將我的步驟一一列出,期盼您的指導 首先,我點你給我的網址 然後,以下()的部分是我的動作 步驟一 Username (輸入) Enter the username you would like to add to your .htpasswd file Password (輸入) Enter the password (按下) Create .htpasswd file 步驟二 .htpasswd entry created Copy the text below into your .htpasswd file. Remember: One entry per line. (我就不知道要Copy the text 在哪裡?是要在D:\website中在建立一個名為.htpasswd的 新資料夾嗎?路徑為D:\website\.htpasswd,在frontpage之下,凡是檔名前方有"."的都 無法建立 ) 感謝~一再解答 ※ 引述《xyz1985 (無)》之銘言: : 謝謝大大 : 我試了一下,但是在路徑步驟 : Enter the full path to your .htpasswd file. : 是要輸入 D:/website/.htpasswd : 還是 website/path/to/.htpasswd : 我的網頁目錄是在D:\website,斜線方向不同會影響嗎? : 再請問一下,你說在生出來的第一行改成.htpasswd : AuthType Basic ---->是指這行嗎?? : AuthName : AuthUserFile D:\\website\\.htpasswd : Require valid-user : 再次感謝大大指導 m(_ _)m : ※ 引述《xyz1985 (無)》之銘言: : : 各位大大 : : 想請問一下 : : 由於我完全沒有上過相關程式語言的課程,所以無法理解下方htpasswd的教學 : : http://cc.ee.ntu.edu.tw/index.php?p=htpasswd : : 一直無法理解的是 "請使用 htpasswd 這支程式建立"這句話,是在哪邊建立? : : 現在我是在用Frontpage2003建立個人網頁(不是寫程式碼的方式),現在完成了 : : 但是卻苦於不知如何建立使用者密碼 : : 可否請板上的大大解答 : : 感謝~ m(_ _)m -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.223.146 ※ 編輯: xyz1985 來自: 140.112.223.146 (06/15 00:30)

06/15 07:57, , 1F
它不是在文字框裡有一行字嗎?(以你剛剛輸入的使用者名稱開頭
06/15 07:57, 1F

06/15 07:57, , 2F
後面跟著冒號) 把那一行複製起來
06/15 07:57, 2F

06/15 07:58, , 3F
在你第二篇寫的位置(即D:\website\)下面建一個叫做.htpasswd
06/15 07:58, 3F

06/15 07:58, , 4F
的純文字檔(不要讓它有副檔名) 把那行字貼上去
06/15 07:58, 4F

06/15 08:00, , 5F
以上動作都"不是"在frontpage裡面做 在windows裡做即可
06/15 08:00, 5F
文章代碼(AID): #18K_62Ll (Web_Design)
討論串 (同標題文章)
文章代碼(AID): #18K_62Ll (Web_Design)