HEAD with mp4 runs in timeout

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

The config part.

     location ~ \.mp4$ {
       mp4;
     }

Could it be that the file is not ‘HEAD’ conform?

Thanks for help.

BR Aleks

On 21 Jul 2014, at 13:20, Aleksandar L. [email protected] wrote:

built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
Codename: lucid
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.

Hi.

Am 21-07-2014 11:53, schrieb Roman A.:

On 21 Jul 2014, at 13:20, Aleksandar L. [email protected] wrote:

[snipp]

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.

Ok thanks.

what a shame. sorry for rush.

cheers aleks