dav and dav_ext, mp4 module, PROPFIND not working for files

audvare nginx-forum at nginx.us
Tue Jul 1 05:35:57 UTC 2014


Roman Arutyunyan Wrote:
-------------------------------------------------------
> 
> Currently nginx does not seem to be able to do what you want.  If
> you’re ready to patch
> the source here’s the patch fixing the issue.
> 
> diff -r 0dd77ef9f114 src/http/modules/ngx_http_mp4_module.c
> --- a/src/http/modules/ngx_http_mp4_module.c    Fri Jun 27 13:06:09
> 2014 +0400
> +++ b/src/http/modules/ngx_http_mp4_module.c    Mon Jun 30 19:10:59
> 2014 +0400
> @@ -431,7 +431,7 @@ ngx_http_mp4_handler(ngx_http_request_t 
>      ngx_http_core_loc_conf_t  *clcf;
>  
>      if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) {
> -        return NGX_HTTP_NOT_ALLOWED;
> +        return NGX_DECLINED;
>      }
>  
>      if (r->uri.data[r->uri.len - 1] == '/') {


Thanks. This works well.

< HTTP/1.1 207 Multi-Status
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/video/avgn/t_screwattack_avgn_bugsbcc_901_gt.mp4</D:href>
<D:propstat>
<D:prop>
...

Is there any change this will make it into upstream so I don't have to keep
on patching?

Not that I mind that much because with Gentoo and user patches it is
extremely easy but I guess I would of course be concerned that the code may
change drastically such that the patch will stop working.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251279,251350#msg-251350



More information about the nginx mailing list