nulee 发表于 2018-5-16 08:28:23

WEBDAV 权限问题解决

打开提示You don't have permission to access /test/ on this server这问题的解决办法
修改/etc/config/apache/extra/apache-dav.conf
定位到
你共享的文件名如我要共享 “soft" "Print“
Alias "/print" "/share/CACHEDEV1_DATA/print"
<Directory "/share/CACHEDEV1_DATA/print">
        #Options FollowSymLinks
        Options FollowSymLinks MultiViews Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
</Directory>
<Location "/print">
        IndexOptions Charset=UTF-8
        Dav On
        AuthType Basic
        AuthName "DAV-print"
        AuthBasicProvider external
        AuthExternal pwauth
        <LimitExcept OPTIONS>
                require user "admin"
        </LimitExcept>
</Location>
Alias "/soft" "/share/CACHEDEV1_DATA/soft"
<Directory "/share/CACHEDEV1_DATA/soft">
        #Options FollowSymLinks
        Options FollowSymLinks MultiViews Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
</Directory>
<Location "/soft">
        IndexOptions Charset=UTF-8
        Dav On
        AuthType Basic
        AuthName "DAV-soft"
        AuthBasicProvider external
        AuthExternal pwauth
        <LimitExcept OPTIONS>
                require user "admin"
        </LimitExcept>
</Location>
将Options FollowSymLinks 改为 Options FollowSymLinks MultiViews Indexes
然后重启
/etc/init.d/Qthttpd.sh restart
应该就可以了 ,本人亲测

momo 发表于 2018-5-16 11:27:24

谢谢分享

zhuxulin 发表于 2018-5-19 20:35:29

看到这个我就想起了以前lamp的时候,配置服务器目录权限的时候了

deepbluez 发表于 2018-8-7 15:35:19

谢谢分享,正好要用

20133114 发表于 2018-8-7 17:48:26

谢谢分享

空空空、白 发表于 2018-8-22 11:08:38

谢谢分享
页: [1]
查看完整版本: WEBDAV 权限问题解决