Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12th January 2010, 16:33
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default Newb: Is this WebDav setup going to work?

Hi,

I have an ISPc3 setup working well and I'm petrified of breaking anything so just wanted someone to sanity-check the following... I really have no idea what I'm doing.

I notice there is a lot of interest in webdav as related to ISP3 so perhaps this can become a howto in the end...

I'm assuming the following:

I'm running ISP3 on Ubuntu 8.04 LTS server.
My site is called 'www.mysite.com'. It's already created using ISPc3.
I want to create a dav folder for the client 'Mike' within my website.

Does the following make sense...?

Become root:
Code:
sudo su
Enable the WebDav modules:
Code:
a2enmod
dav (enter)
a2enmod
dav_fs (enter)
Reload apache
Code:
/etc/init.d/apache2 force-reload
Create a dav folder for 'Mike': (The exact location may be different for you)
Code:
mkdir /var/www/clients/client4/www.mysite.com/web/clients/dav/mike
Only allow root and www-data group members to access. Then set permissions:
Code:
chgrp root:www-data /var/www/clients/client4/www.mysite.com/web/clients/dav/mike
chmod 640 /var/www/clients/client4/www.mysite.com/web/clients/dav/mike

Create the htpasswd file and add the user 'mike'. The -c flag creates the file if it doesn't already exist. *Only* use it the first time. You will be asked for the password you wish 'mike' to use.
Code:
htpasswd -c /var/www/clients/client4/www.mysite.com/web/clients/dav/mike/.DAVlogin mike
I then go to my ISPc3 control panel and log in.
I go to the 'Sites' tab
Click on 'www.mysite.com'
Go to 'Options'

In the 'Apache Directives' field I paste in:
Code:
DAVLockDB /tmp/DAVLock
#DAVMinTimeout 600

<Location /clients/client4/www.mysite.com/web/clients/dav/mike/>
        Dav On

        AuthType Basic
        AuthName mike
        AuthUserFile /var/www/clients/client4/www.mysite.com/web/clients/dav/mike/.DAVlogin

        <LimitExcept OPTIONS>
                Require user mike
        </LimitExcept>
</Location>
Save and log out of ISPc3

Restart apache
Code:
/etc/init.d/apache2 restart
I more or less have to repeat this whole thing for each WebDav user I want to create.

Is this going to work?

Is there a more elegant way, especially given that I will need to create further password protected Dav folders for other users?

Thanks guys! :-)

S

Last edited by smartin; 12th January 2010 at 17:06.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with Postfix setup not working wmkconn Server Operation 13 9th April 2008 21:45
setup mail on dynamic IP. kameleon25 Installation/Configuration 2 24th January 2008 13:22
The Perfect Setup - SuSE 10.1 (32-bit) - Qouta Issues ? ezfilez HOWTO-Related Questions 3 26th September 2006 18:09
How setup Tomcat JSP on FC5 QuikeMore Suggest HOWTO 1 9th September 2006 14:45
Xen 3.0 Setup For Debian newb problem-No network connectivity on first dom0 boot BCNW HOWTO-Related Questions 4 22nd August 2006 14:24


All times are GMT +2. The time now is 12:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.