intermittent problems reaching files (whether served via php or not)

tunist nginx-forum at
Wed Nov 19 14:04:38 UTC 2014

having difficulty to serve simple video files here (for playback in a
browser via video-js or other player). even without the video player there
are problems.
i have tested access to the video file both when the file is served from
within the php framework i am using ( and also directly from a
public location on the webserver. in some circumstances the file 'might'
play and in others i see a variety of different outcomes - and i am not
aware of the causes of any of the behavior patterns.

when accessing the following file (which is not being served via PHP
handling, it is just a directly accessed static file, served from nginx)
firefox i am offered the option to view or download the file (as expected):

when i access the same file from chromium i am forwarded to the homepage of
my website.
when i access the same file from curl in the terminal here, i see:

HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Wed, 19 Nov 2014 13:31:28 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Strict-Transport-Security: max-age=31536000; includeSubdomains
X-Frame-Options: DENY
X-UA-Compatible: IE=Edge
X-Frame-Options: SAMEORIGIN


when i run curl to access the same file being served through elgg and php i

 curl -i
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Wed, 19 Nov 2014 13:29:59 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.5.17
Set-Cookie: Elgg=gfjvl4tdrb30sqpasmketmmm22; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
Pragma: no-cache

<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>


does anyone know why there are so many variations of outcomes here? and what
might be the reason why the file is not being consistently return with a 200
code? (or other equivalent success code).
the end result is that i am unable to play flv and other files from my
webserver via video-js and other players.
i have spoken with the server host about this and they did not identify that
any of their actions would cause this to occur.
any help is greatly appreciated.

Posted at Nginx Forum:,254921,254921#msg-254921

More information about the nginx mailing list