logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Access to WebDAV folders via a browser
Author
mischaadj



Joined: 10 Oct 2012
Posts: 3
Location: Germany

PostPosted: Tue 19 Mar '13 21:09    Post subject: Access to WebDAV folders via a browser Reply with quote

I am working with an Apple Lion Server. I want to give users the possibility to gain access to certain share points with the help of a webbrowser via the WebDAV protocol.
The OS allows to define sharepoints with the help of a GUI. In this GUI you can adjust, that the users are allowed to access the sharepoints via WebDAV but it is not possible
to access the folders via a browser. You just get an error from the webserver after a login:
Quote:
You don't have permission to access /webdav/ on this server.

So I have looked for the relevant configuration file "httpd_webdavsharing.conf" (apache v2.2)
Code:
#
# Apache Config for WebDAV Sharing
# Activated and deactivated by com.apple.webapp.webdavsharing webapp
#

RegisterResource "WebDAV Sharing: %c %s" /webdav main webdav
RewriteEngine On
RewriteMap webdavmap prg:/usr/libexec/webdavsharing/webdavsharing_mapper
RedirectMatch permanent ^/webdav$ /webdav/
<Location "/webdav">
   AuthType Basic
   AuthName "UserWebDAV Gateway"
   Require valid-user
   RewriteEngine On
   RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla.*
   RewriteRule  . - [F]
   RewriteCond %{REMOTE_USER} (.+)
   RewriteRule /webdav(.*) ${webdavmap:%1}$1 [P,DPI]
</Location>

Is there a way to modify the code in such a way that it allows the favoured access? Or is there even another way to solve my problem?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Wed 20 Mar '13 12:57    Post subject: Reply with quote

You need a <Directory> Block with the permission stuff (Allow Deny etc.) for the path where is webdav files are.
Back to top


Reply to topic   Topic: Access to WebDAV folders via a browser View previous topic :: View next topic
Post new topic   Forum Index -> Apache