WebDAV 配置,获取与 require valid-user using lazy sessions 相关的错误

WebDAV configuration, getting error related to require valid-user using lazy sessions

我正在尝试配置 WebDAV 环境。但是,我不断收到此错误: htaccess: require valid-user not given a valid session, are you using lazy sessions?

查看 Fiddler,我看到 HTTP 代码 500。

所有 google 搜索似乎都包含对我已安装但未在此路径结构中调用的 Shibboleth 的引用。

<Directory "/path/to/webdav">
  Options Indexes MultiViews FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

<VirtualHost *:443>
    ServerName my.domain.com
    DocumentRoot "/path/to/root"        
    ...
    Alias /aaa/bbb /path/to/webdav/aaa/bbb
    <Location /aaa/bbb>
            Options Indexes
            DAV On
            AuthType Basic
            AuthName "webdav"
            AuthUserFile /path/to/webdav.pwd
            Require valid-user
    </Location>
</VirtualHost>

下面的解决方案...

基本上,在我的主机配置的最后几行中有一个 Shibboleth 会话的全面要求。

<PathRegex regex=".*" authType="shibboleth"
requireSession="true" requireSessionWith="Intranet" />

我只需要在这些行之前的 webdav 文件夹中添加一个例外。

<Path name="webdav" authType="shibboleth" requireSession="false" />