Welcome! Log In Create A New Profile

Advanced

Re: Really bizarre problem with Sabredav

April 21, 2012 04:24PM
On Sat, 2012-04-21 at 07:49 -0400, squimmy wrote:
> Hi,
>
> Yeh, I did think about using nginx modules, but that would require
> recompiling nginx unless i'm mistaken? I'm also hoping to integrate this
> with Owncloud, and that uses SabreDav, so getting that working is my
> preferred option.
>
> These are my Nginx conf files:
> Nginx.conf: http://pastebin.com/fNPkw4fq
>
> Virtual.conf: http://pastebin.com/N4PZXrBm

Here's what I suspect is happening:

You have location /dav, where I expect is where you want SabreDav to
handle requests. After that you do:

include /usr/local/nginx/conf/php.conf;
include /include /usr/local/nginx/conf/staticfiles.conf;

I suspect these contain regex locations that are matching your
problematic extensions. The reason for this is that these regex
locations will take precedence over your /dav location, so when you do a
DAV request such as "PUT /dav/image.jpg", you are really doing the PUT
to a regex location such as "~ \.(jpg|png|gif)$" in staticfiles.conf or
"~ \.php$" in php.conf.

The way Nginx processes requests is outlined here:

http://nginx.org/en/docs/http/request_processing.html

The end result of all of this is you will need to *not* include your
php.conf and staticfiles.conf as top-level locations. Instead you will
need to include them inside other non-regex locations.

Alternatively, you could setup a subdomain such as dav.domain.com and do
all your DAV requests via that (this is probably the most foolproof).


Regards,
Cliff


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Really bizarre problem with Sabredav

squimmy April 19, 2012 08:01PM

Re: Really bizarre problem with Sabredav

Cliff Wells April 20, 2012 04:16PM

Re: Really bizarre problem with Sabredav

Cliff Wells April 20, 2012 04:16PM

Re: Really bizarre problem with Sabredav

squimmy April 21, 2012 07:49AM

Re: Really bizarre problem with Sabredav

Cliff Wells April 21, 2012 04:24PM

Re: Really bizarre problem with Sabredav

Francis Daly April 21, 2012 06:32PM

Re: Really bizarre problem with Sabredav

squimmy April 25, 2012 02:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 226
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready