HEAD with mp4 runs in timeout

Roman Arutyunyan arut at nginx.com
Mon Jul 21 09:53:06 UTC 2014


On 21 Jul 2014, at 13:20, Aleksandar Lazic <al-nginx at none.at> wrote:

> Hallo.
> 
> When I make a GET request I get the file as expected, but the HEAD Request runs in a time out.
> 
> curl -v 'http://vhost/cams/44/zoom.mp4?_=1405930346082' -X HEAD
> 
> I use the following version.
> 
> /home/nginx/server/sbin/nginx -V
> nginx version: nginx/1.7.3
> built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
> TLS SNI support enabled
> configure arguments: --prefix=/home/nginx/server --with-debug --without-http_uwsgi_module --without-http_scgi_module --without-http_empty_gif_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_ssl_module --user=nginx --group=www-data --with-file-aio --without-http_ssi_module --with-http_secure_link_module --with-http_sub_module --with-http_spdy_module --with-http_mp4_module
> 
> on
> 
> lsb_release -a
> No LSB modules are available.
> Distributor ID:	Ubuntu
> Description:	Ubuntu 10.04.4 LTS
> Release:	10.04
> Codename:	lucid
> 
> Error log
> https://gist.github.com/anonymous/5c855e52877afacc515d
> 
> The config part.
> 
>        location ~ \.mp4$ {
>          mp4;
>        }
> 
> Could it be that the file is not 'HEAD' conform?
> 
> Thanks for help.

man curl:

-X
  ..
  This option only changes the actual word used in the HTTP request,
  it does not alter the way curl behaves. So for example if you
  want to make a proper HEAD request, using -X HEAD will not suffice.
  You need to use the -I, --head option.



More information about the nginx mailing list