Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 20258 invoked from network); 30 Jan 2010 19:07:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jan 2010 19:07:44 -0000 Received: (qmail 19699 invoked by uid 500); 30 Jan 2010 19:07:43 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 19626 invoked by uid 500); 30 Jan 2010 19:07:42 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 19617 invoked by uid 99); 30 Jan 2010 19:07:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jan 2010 19:07:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [188.40.99.202] (HELO eru.sfritsch.de) (188.40.99.202) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jan 2010 19:07:34 +0000 Received: from stf (helo=localhost) by eru.sfritsch.de with local-esmtp (Exim 4.69) (envelope-from ) id 1NbIf4-0004a2-ON for dev@httpd.apache.org; Sat, 30 Jan 2010 20:07:14 +0100 Date: Sat, 30 Jan 2010 20:07:14 +0100 (CET) From: Stefan Fritsch To: dev@httpd.apache.org Subject: Re: mod_dav inconsistent behaviour for GET requests In-Reply-To: <135879C9-4090-4607-91C5-C2F716C19CAD@sharp.fm> Message-ID: References: <201001290842.41269.sf@sfritsch.de> <201001291946.28531.sf@sfritsch.de> <201001301104.55273.sf@sfritsch.de> <135879C9-4090-4607-91C5-C2F716C19CAD@sharp.fm> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org On Sat, 30 Jan 2010, Graham Leggett wrote: > On 30 Jan 2010, at 12:04 PM, Stefan Fritsch wrote: > I don't follow how this makes it easier to use the recommended setup? > > In your example config, you defined /dav as being handled by mod_dav, and > then you defined a FilesMatch (as I recall) that defined mod_php to be used > by all URLs in the complete URL space that ended with ".php". In so doing > you're creating two configs that both overlap and contradict themselves, and > this is specifically discouraged by the recommended setup. It's not that easy to enable mod_php globally except for one subdir, at least for the casual admin. For the FilesMatch, one would need some advanced regexp foo. The same is true if you have AddType'd various script extensions. The example config at http://httpd.apache.org/docs/2.2/mod/mod_dav.html#complex recommends using 'ForceType text/plain' to override the 'AddType application/x-httpd-php .php' that most users have somewhere else in their config. This is a pretty bad hack, IMHO. Most files in the dav directory will be delivered with the wrong content type. > I also don't like the idea that mod_dav is treated differently to other > handlers. If you want to really solve this problem, you need to do so > generically. mod_dav is not treated differently, is should just handle the request. The fact that it delegates this to the default handler for some providers should not concern the average user. Or how do you explain to a user that a config that works fine with 'Dav svn' does not work with 'Dav on'? (Or the other way round, depending on what you are trying to achieve.)