LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Help a noob set up WebDAV on his server? (https://www.linuxquestions.org/questions/linux-server-73/help-a-noob-set-up-webdav-on-his-server-683635/)

apache2 11-15-2008 03:01 PM

Help a noob set up WebDAV on his server?
 
Okay, I have a server running Ubuntu 8.04 with Apache 2.2.8. I use SFTP to transfer my sites to it.

But I want to let someone else store their crap on my server, but I don't want them to have access to the entire filesystem.

So in short, whats the easiest way to set up a WebDAV folder?

Thanks

BillyCrook 11-16-2008 12:21 AM

Here's how I set up webdav a while back when I was playing around with Mozilla Weave.

<VirtualHost *:80>
# Other unrelated stuff, removed.
# <Location /weave/>
# DAV On
# AuthType Basic
# AuthName "WebDAV Weave Restricted"
# AuthUserFile "/srv/httpd/passwd"
# require user bcrook
# </Location>
</VirtualHost>

WARNING: If done without SSL, this will expose the username and password and all transferred data in the clear.

Use the htpasswd program to make the file /srv/httpd/passwd. AuthName is arbitrary. It's presented to the user in the username/password window.

If you're interested. Here's the howto I used originally:
http://remcobressers.nl/2008/07/crea...-weave-server/

Mozilla Weave servers are really just webdav servers. Nothing special about Weave for them.

billymayday 11-16-2008 12:48 AM

You will also need something like

LoadModule dav_module modules/mod_dav.so

apache2 11-16-2008 06:35 PM

Quote:

Originally Posted by BillyCrook (Post 3343422)
Here's how I set up webdav a while back when I was playing around with Mozilla Weave.

<VirtualHost *:80>
# Other unrelated stuff, removed.
# <Location /weave/>
# DAV On
# AuthType Basic
# AuthName "WebDAV Weave Restricted"
# AuthUserFile "/srv/httpd/passwd"
# require user bcrook
# </Location>
</VirtualHost>

WARNING: If done without SSL, this will expose the username and password and all transferred data in the clear.

Use the htpasswd program to make the file /srv/httpd/passwd. AuthName is arbitrary. It's presented to the user in the username/password window.

If you're interested. Here's the howto I used originally:
http://remcobressers.nl/2008/07/crea...-weave-server/

Mozilla Weave servers are really just webdav servers. Nothing special about Weave for them.

Are all of those supposed to be commented out?

billymayday 11-16-2008 06:54 PM

I would assume so. Here's one I use:

Code:

<Directory /var/www/xxxxx.com/html/web_dav/>
  DAV On
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
  Allow from 192.168.1
</Directory>


apache2 11-16-2008 09:41 PM

Thanks everyone!!

BillyCrook 11-17-2008 04:36 AM

Quote:

Originally Posted by apache2 (Post 3344214)
Are all of those supposed to be commented out?

They were commented out because Weave wasn't working out to well for me, and I no longer needed DAV enabled.


All times are GMT -5. The time now is 03:58 AM.