跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 求助一个 lighttpd auth 认证的问题
未分類
8 2 月 2021

求助一个 lighttpd auth 认证的问题

求助一个 lighttpd auth 认证的问题

資深大佬 : AllenHua 2

用 openwrt + lighttpd + webdav 搭建了一个 webdav 服务,server 用的 lighttpd, 认证用的 lighttpd-mod-auth 和 lighttpd-mod-authn_file

下面是配置文件 /etc/lighttpd/conf.d/20-auth.conf

####################################################################### ## ##  Authentication Module ## ----------------------- ## ## See https://redmine.lighttpd.net/projects/lighttpd/wiki/docs_modauth ## for more info. ## server.modules += ( "mod_auth" )  auth.backend                 = "plain" auth.backend.plain.userfile  = "/etc/lighttpd/lighttpd.user" #auth.backend.plain.groupfile = "/etc/lighttpd/lighttpd.group"  #auth.backend.ldap.hostname = "localhost" #auth.backend.ldap.base-dn  = "dc=my-domain,dc=com" #auth.backend.ldap.filter   = "(uid=$)"  auth.require               = ( "/" =>                                (                                  "method"  => "basic",                                  "realm"   => "Allen Hua's WebDAV File Server",                                  "require" => "valid-user"                                ),                              )  auth.cache = ("max-age" => "180")  ## ####################################################################### 

目前达成既定目标,可以正常认证

求助一个 lighttpd auth 认证的问题

求助一个 lighttpd auth 认证的问题

希望优化的点:

优化成每次都需要认证,或者设置一个缓存时间 5 分钟内才不需要认证(因为通过 frp 内网穿透了 通过外网访问 希望安全一些每次都能认证一下)

看了下 官方文档 https://redmine.lighttpd.net/projects/lighttpd/wiki/docs_modauth 中的 auth.cache 相关的配置,目前在配置文件中给定了配置但没有生效,希望有懂的 v 友给点思路或意见!

感谢阅读。

大佬有話說 (0)

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具