![]() |
||
*停權中*
加入日期: Mar 2007
文章: 186
|
我可以開一個lighttpd的討論串嗎?
這個web server比較冷門,有些問題到官方論壇問也不確定老外會不會幫忙提供意見
如果這邊也有大師對lighttpd有所研究,有些問題想請教,還請幫忙解惑 目前碰到個一個問題是有關htdigest用戶認證的問題 http://redmine.lighttpd.net/project...ki/Docs_ModAuth 代碼:
auth.require = ( "/download/" => ( # method must be either basic or digest "method" => "digest", "realm" => "download archiv", "require" => "user=agent007|user=agent008" ), "/server-info" => ( # limit access to server information "method" => "digest", "realm" => "download archiv", "require" => "valid-user" ) "/protected-folder/" => ( # "method" => "digest", "realm" => "download archiv", "require" => "valid-user" ) ) 官方範例都只有提到針對資料夾做用戶認證 如果我希望針對否資料夾下面的某個網頁作用戶認證起問有沒有人知道怎麼做 for example 我想針對 http://127.0.0.1/discuz/forum-smg-1.html 僅僅這個網頁作用戶認證 那麼我該如何修正auth.require的語法才能達到目的? |
|||||||
![]() |
![]() |
Junior Member
![]() ![]() ![]() 加入日期: Jun 2002
文章: 996
|
記得看過這模組的碼是無法,否就就那資料夾下只一個檔。不行只能找模組或自己改模組吧。
__________________
“Suffering is not good for the soul, unless it teaches you how to stop suffering. That is its purpose.” - Seth Speaks: The Eternal Validity of the Soul “Live every day to its fullest, and do not be a slave to your hopes for the future. If you do not learn to enjoy today you will not enjoy the future no matter what it may bring.” - The Seth Material “Desire, wish and expectation rules all actions and are the basis of all realities.” - The Seth Material |
||
![]() |
![]() |
*停權中*
加入日期: Mar 2007
文章: 186
|
引用:
請問,你的意思是說不要用mod_auth 還是說不要用htdigest,又或者是說要換掉lighttpd呢? 無論哪個都是一整個頭痛啊 ![]() 如果說可以不用換掉整個lighttpd server,請問有沒有另外一種建議的方式能夠作用戶認證又能符合我的需求 如果有個方向我可以去研究一下 ![]() 此文章於 2013-05-12 09:58 PM 被 goddesschi 編輯. |
|
![]() |
![]() |
New Member
加入日期: May 2011
文章: 7
|
|
![]() |
![]() |
*停權中*
加入日期: Mar 2007
文章: 186
|
引用:
要我老命啊,php我是一竅不通,看得頭昏眼花 ![]() 要指向偽靜態的其中一個網頁做認證,我真的要跪了orz |
|
![]() |
![]() |