LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-15-2008, 03:01 PM   #1
apache2
LQ Newbie
 
Registered: Nov 2008
Posts: 23

Rep: Reputation: 15
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
 
Old 11-16-2008, 12:21 AM   #2
BillyCrook
LQ Newbie
 
Registered: Feb 2007
Posts: 15

Rep: Reputation: 0
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.
 
Old 11-16-2008, 12:48 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You will also need something like

LoadModule dav_module modules/mod_dav.so
 
Old 11-16-2008, 06:35 PM   #4
apache2
LQ Newbie
 
Registered: Nov 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by BillyCrook View Post
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?
 
Old 11-16-2008, 06:54 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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>
 
Old 11-16-2008, 09:41 PM   #6
apache2
LQ Newbie
 
Registered: Nov 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks everyone!!
 
Old 11-17-2008, 04:36 AM   #7
BillyCrook
LQ Newbie
 
Registered: Feb 2007
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by apache2 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Set Up WebDAV With Lighttpd On Mandriva 2008.1 LXer Syndicated Linux News 0 08-26-2008 08:40 PM
LXer: How To Set Up WebDAV With Lighttpd On Debian Etch LXer Syndicated Linux News 0 08-10-2008 01:42 PM
webdav with Apache web server fatra2 Linux - Server 2 07-12-2008 03:43 AM
LXer: How To Set Up WebDAV With MySQL Authentication On Apache2 (Debian Etch) LXer Syndicated Linux News 0 06-19-2008 07:50 AM
LXer: How To Set Up WebDAV With Apache2 On Debian Etch LXer Syndicated Linux News 0 06-03-2008 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration