My webdav stuff is on
/var/www/webdav/
, there I have multiple access roles to enable access to users and groups. And I would like to open one particular folder to the world (/webdav/public/). How do I do that?I tried:
Alias /webdav /var/www/webdav <Location /webdav> DAV On AuthType Digest AuthName "webdav" AuthUserFile /etc/apache2/users.password Require valid-user </Location> Alias /webdav/public /var/www/webdav/public <Directory /var/www/webdav/public> DAV On </Directory>
But this way, requesting
http://mysite.ddns.net/webdav/public
asks for credentials.
Answer
Solved with:
Alias /webdav /var/www/webdav
<Location /webdav>
DAV On
AuthType Digest
AuthName "webdav"
AuthUserFile /etc/apache2/users.password
Require valid-user
</Location>
Alias /webdav/public /var/www/webdav/public
<Location /webdav/public>
DAV On
AuthType Digest
AuthName "webdav"
AuthUserFile /etc/apache2/users.password
Require all granted
</Location>
Not sure if the best approach!
Attribution
Source : Link , Question Author : KcFnMi , Answer Author : KcFnMi