Fwd: WEBDAV: accomodate MKCOL for somewhat broken clients
Jonathan Kolb
jon at b0g.us
Fri Jun 14 20:12:36 UTC 2013
This worked in a quick test for me:
map $uri $missing_slash {
default 1;
~/$ 0;
}
map $request_method $add_slash {
default 0;
MKCOL $missing_slash;
}
server {
location / {
dav_methods MKCOL;
if ($add_slash) { rewrite ^ $uri/ break; }
}
}
On Thu, Jun 13, 2013 at 8:28 AM, Vladimir Dronnikov <dronnikov at gmail.com>wrote:
> Any chance to have this trailing slash controlled by an option?
> Or would you people mind to share a chunk of nginx config which would
> append that slash?
> TIA
>
>
> On Thu, Jun 13, 2013 at 4:21 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
>
>> Hello!
>>
>> On Thu, Jun 13, 2013 at 12:15:54PM +0400, Vladimir Dronnikov wrote:
>>
>> > Hello!
>> >
>> > I wonder if
>> >
>> https://github.com/dvv/nginx/commit/3a8cdadea196a594fd1940be02818f51d1b1769fis
>> > feasible? The rationale is to be more liberal to the zoo of webdav
>> > clients.
>>
>> Doesn't looks like a good change to me.
>>
>> --
>> Maxim Dounin
>> http://nginx.org/en/donation.html
>>
>> _______________________________________________
>> nginx-devel mailing list
>> nginx-devel at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>>
>
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130614/4897d364/attachment.html>
More information about the nginx-devel
mailing list