From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 12C5413873B for ; Sat, 1 Mar 2014 12:08:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC58EE0A5B; Sat, 1 Mar 2014 12:08:39 +0000 (UTC) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8A01EE0762 for ; Sat, 1 Mar 2014 12:08:38 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id n12so1477290wgh.30 for ; Sat, 01 Mar 2014 04:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=iDsVhmRS/EBf98ZAjEgtkVG/gwzCSpgGEhAZ8MchASs=; b=TCVBXsHzqBc3n0BQd7uFOZW6jWCmvgayaSlI5ek9PG6KuJGX/1SUZ2/EtwhdYRTJVM K7wvOXxdRfRtZC0XEddp42JR5V4Vtf3mtAuJw5dpeTj59RJYN+gl/VH5raywCjyyTYg0 12vQ8gy1fxU4ZBdJ2ina9VXIz16p0q/gEpEEYHCi//M6u8vP0dVEj25jomJYA9kNFfps lq6nE+/cYjAXjX00j41UQb1WdJbbXo3fSe3owrO02rxcUey1oAv/IMkcwLV1htFNVebb rgzcpr2fO1sQfKz1SkiDeXU8A49HOUQaSi8awvGYoOOLN/heQfr7Xvff1SMmBnUIuKuX fb/Q== X-Received: by 10.180.218.171 with SMTP id ph11mr7417632wic.7.1393675717011; Sat, 01 Mar 2014 04:08:37 -0800 (PST) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPSA id u6sm14998462wif.6.2014.03.01.04.08.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Mar 2014 04:08:35 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT?] How to get WebDAV going on Apache? Date: Sat, 1 Mar 2014 12:08:17 +0000 User-Agent: KMail/1.13.7 (Linux/3.10.17-gentoo; KDE/4.11.5; x86_64; ; ) References: <1700892.spIRaK2ciy@wstn> <116142837.3lVAP2CADj@wstn> In-Reply-To: <116142837.3lVAP2CADj@wstn> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1564165.jVx95utGCo"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201403011208.19278.michaelkintzios@gmail.com> X-Archives-Salt: 10c0c54c-d262-479f-98f5-04ac30009628 X-Archives-Hash: b4f77efc401bf10fe6a537810cbc8624 --nextPart1564165.jVx95utGCo Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Saturday 01 Mar 2014 11:13:40 Peter Humphrey wrote: > On Friday 28 Feb 2014 16:31:39 Nilesh Govindrajan wrote: > > You don't need moddav for owncloud. Owncloud implements it via php. >=20 > Now I am confused. Do I need to add or remove a USE flag from php or > owncloud? I can't advise on owncloud, because I hadn't heard of it until now. In a=20 vanilla apache installation you would need to do the following: 1. Set up the dav, dav_fs, dav_lock USE flags in apache, remerge it and=20 restart it. 2. Check that /etc/apache2/httpd.conf shows: LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dav_lock_module modules/mod_dav_lock.so 3. Set up your vhost fs to enable webdav access to it: ServerName example.com ServerAlias my_example.com DocumentRoot /var/www/dev.example.com/htdocs Dav On AuthType Basic AuthUserFile /var/www/.basic_password AuthName "My WebDav Site - Admin Access Only!" Require user My_User 4. Configure your corresponding modules.d vhost file: Options FollowSymlinks AllowOverride All Order deny,allow Allow from all 5. Configure the installed webdav module file. I don't know what are the=20 defaults but this is what I have in my /etc/apache2/modules.d/45_mod_dav.co= nf: DavLockDB "/var/lib/dav/lockdb" # The following directives disable redirects on non-GET requests for # a directory that does not include the trailing slash. This fixes a # problem with several clients that do not appropriately handle # redirects for folders with DAV methods. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect- carefully BrowserMatch "MS FrontPage" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[012345678]" redirect-carefully BrowserMatch "^gnome-vfs/1.0" redirect-carefully BrowserMatch "^XML Spy" redirect-carefully BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully 6. Set up /etc/conf.d/apache2 to start the DAV option. In mine I have both= '- D DAV' and '-D DAV_FS', but I don't know if apache-2.4 needs the latter to= be=20 explicitly started by apachectl or if it is loaded by the DAV module. Restart apache and you should be able to access the fs from a browser, with= =20 username 'My_User' and whatever password you have created with htpasswd. I= f=20 you don't trust the network and therefore you don't want to be sending=20 credentials in the clear, enable SSL. I hope I haven't missed anything important here. Have a look at the online= =20 apache documentation for more advanced settings, if you want to lock down w= hat=20 webdav will allow, otherwise keep an eye on your apache logs to see if ther= e=20 are any errors. HTH. =2D-=20 Regards, Mick --nextPart1564165.jVx95utGCo Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJTEc2zAAoJELAdA+zwE4YeTzQIAKs06dcC/Y1hHTKzEiSfsbxw 9/6Z23w9gyhG1MqSpQ0bZopacLro2BD4a6TmbS66/W9ljwmv8eoYpL7uMvd+aztq vex7B1J4U8NvfX9k8SkGlh3oO8YpME4q4jsPucBP3Rf1FkzwqVreO5KB025guw+3 WqQjpjTILloxQonz2LWMAaXG7xoTBXCUUYcIWt0wTNT3N+dd0ci+aAeoZyWFJLqm j8AjliRmZIf8vAWY6BkHKrCXhzsm/+WSfKaePso8ONQUQ+iyhmADTk98a+qmKrNz LA72/Kk4ydCM0W5hRQsP2XZmaGWRgQEVg1pIsuIsXw+Cu39opi/Is/lOSleNjSU= =w28f -----END PGP SIGNATURE----- --nextPart1564165.jVx95utGCo--