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

2014-06-27 Thread audvare
Somehow uploadprogress seems to be affecting a request unrelated. I am using Cyberduck on Windows to test WebDAV (over HTTPS). It successfully logs in, lists files, etc. But it does not download any files because it does not like that PROPFIND on a file gives a 405 status. Cut down log: 2014/06/27

SSL slow on nginx

2014-06-27 Thread khav
For my site , ssl seems to be slow even though i got A+ on sslabs (implemented ocsp stapling, Forward Secrecy , spdy) Here is the result from pingdom http://tools.pingdom.com/fpt/#!/cc2MfH/https://www.filterbypass.me/ Notice the high connect time and high ssl negociation time Here is my ng

Re: Recommended spdy configuration

2014-06-27 Thread khav
Thanks for the info Valentin Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251150,251276#msg-251276 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
Latest picture http://s633.photobucket.com/user/C0nw0nk/media/Untitled-7.png.html Everything utilizing the read's and writes is nginx and when i set the following buffers i get massive spikes like that. location ~ \.mp4$ { mp4; mp4_buffer_size 9000m; mp4_max_buffer_size 9000m; } Posted at Nginx

Re: difficulty adding headers

2014-06-27 Thread Maxim Dounin
Hello! On Fri, Jun 27, 2014 at 07:26:04PM -0400, ura wrote: > ok, thanks for clarifying. > i just did a clean test as suggested and do indeed see the Accept-Ranges > header being returned automatically by nginx. > > in doing that - the mp4 video still does not stream/pre-buffer as i am > desirin

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
Paul Schlie Wrote: --- > I don't know if what you're experiencing is related to a problem I'm > still tracking down, specifically that multiple redundant read-streams > and corresponding temp_files are being opened to read the same file > from a b

Re: difficulty adding headers

2014-06-27 Thread ura
ok, thanks for clarifying. i just did a clean test as suggested and do indeed see the Accept-Ranges header being returned automatically by nginx. in doing that - the mp4 video still does not stream/pre-buffer as i am desiring. i accessed the test video file that is on the homepage of the video.js

Re: Nginx Windows High Traffic issues

2014-06-27 Thread Paul Schlie
I don't know if what you're experiencing is related to a problem I'm still tracking down, specifically that multiple redundant read-streams and corresponding temp_files are being opened to read the same file from a backend server for what appears to be a single initial get request by a client fo

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
So a disk spinning at 15000 rpm compared to my current hard drive spinning at 7000 rpm does better than a SSD still ? This is my current hard drive i posted earlyer i do believe http://www.hgst.com/hard-drives/enterprise-hard-drives/enterprise-sata-drives/ultrastar-7k4000 Posted at Nginx Forum:

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
c0nw0nk Wrote: --- > Perhaps nginx should look at the I/O usage to do with that function > and see if they can make it better. Its a disk subsystem issue which is under control by the OS not nginx, a good 15k sas does wonders. Posted at Nginx Fo

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
My new soloution did not last very long everything shot up again so the mp4 function is needed to drop I/O usage but as of what the optimal setting for the buffers are realy does baffle me Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251265#msg-251265 _

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
I think i found the soloution rather than buffer or envolve pseudo streaming mp4 already html5 compatible videos. I just leave it to the browsers rather than my server. So to solve my I/O usage issue i dropped "mp4;" from my server config "#mp4;" and now my I/O usage is basically back at 0. Perh

Re: [PROPOSAL PATCH] use a return code for ngx_http_close_request()

2014-06-27 Thread Maxim Dounin
Hello! On Fri, Jun 27, 2014 at 09:26:23AM -0400, crespin wrote: > Hello, > > here is another path still on ngx_http_request.c. > In function ngx_http_close_request(), the second parameter is an error > code. > > This error code is used in ngx_http_free_request() to set the HTTP status > code if

Re: [PROPOSAL PATCH] use a return code for ngx_http_terminate_request()

2014-06-27 Thread Maxim Dounin
Hello! On Fri, Jun 27, 2014 at 09:07:27AM -0400, crespin wrote: > Hello, > > Reading ngx_http_request.c source code, I notice some call to > ngx_http_terminate_request() is called sometimes with 0 instead of a return > code. > > 0 is a correct valid for a return code ... it's NGX_OK. > > Is th

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
Hmm well i have figured out it is my mp4 buffers that need fixing but i recon my largest video file size on the server is maybe 700mb as of figuring out what to set this to i am currently just playing around with it to see what works best. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
Which shows disk IO is much better which to me indicates there were/are too many small writes to disk, when some parts are slow tuning is a big time issue with nginx no matter which OS your running. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251259#msg-251259 ___

Re: difficulty adding headers

2014-06-27 Thread Maxim Dounin
Hello! On Fri, Jun 27, 2014 at 02:23:47PM -0400, ura wrote: > this stackoverflow response on the topic is one that quotes the code i > used... i have also seen this page linked by several other pages which said > this was a workable approach: > http://stackoverflow.com/questions/14598565/serving-

Re: difficulty adding headers

2014-06-27 Thread ura
i just did a test of inserting a meaningless header into the response, by adding the add_header directive into the various levels of the nginx config, beginning with http, then server and then the location that i have setup to focus on mp4 files. i found that the header is successfully inserted in

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
The results got even more fascinating as i increased the buffer size's to the following. client_max_body_size 0; client_body_buffer_size 1000m; mp4_buffer_size 700m; mp4_max_buffer_size 1000m; http://s633.photobucket.com/user/C0nw0nk/media/Untitled-6.png.html Posted at Nginx Forum: http://forum

Re: difficulty adding headers

2014-06-27 Thread ura
this stackoverflow response on the topic is one that quotes the code i used... i have also seen this page linked by several other pages which said this was a workable approach: http://stackoverflow.com/questions/14598565/serving-206-byte-range-through-nginx-django i am not blindly following anythi

Re: difficulty adding headers

2014-06-27 Thread Maxim Dounin
Hello! On Fri, Jun 27, 2014 at 12:54:09PM -0400, ura wrote: > thanks for responding here. > the 206 code was advised by every tutorial i found online. > i am using nginx 1.7.2, so cannot upgrade. Ok, so your problem is likely due to "return 206" added. Just remove it, as well as other garbage

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
Try via a forum like http://www.overclock.net/t/1193676/looking-for-hdd-benchmark-utility Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251249#msg-251249 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo

changes to ngx.arg[1] not getting reflected in final response

2014-06-27 Thread vamshi
header_filter_by_lua ' ngx.header.content_length = nil ngx.header.set_cookie = nil if ngx.header.location then local _location = ngx.header.location _location = ngx.escape_uri(_location) _lo

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
Since i have never had to benchmark a hard drive before this will be a new experience for me any tools you recommend to use specifically. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251247#msg-251247 ___ nginx mailing list nginx@ngi

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
It all depends what you are writing, too small blocksize, many seeks, onboard diskcache not working (writeback). Run some disk benchmarks to see what your storage is capable of and compare that to how much data your attempting to write. At the moment your disks are not keeping up with the amount of

Re: Matching a href spec with Lua regex

2014-06-27 Thread vamshi
Sorry for the double post, but wanted to post the complete conf ... just in case there was a mistake server { listen 80; server_name 127.0.0.1 10.0.9.44; set $_ActualTarget ""; location / { rewrite_by_lua ' local _args = n

Re: difficulty adding headers

2014-06-27 Thread ura
also.. since only the headers added via the final location block will be used, does this then mean that i need to put conditional logic into that block to check the current url for particular paths - if some headers are needed for some paths only.. ? since most of my served items will end in the .

Re: Matching a href spec with Lua regex

2014-06-27 Thread vamshi
As usual, found my error. The following is properly matcing the regex : local escUri = function (m) local _str = "href=\\"http://10.0.9.44/?_redir_="; _str = _str .. ngx.escape_uri(m[1]) .. "\\"" return _str

Re: difficulty adding headers

2014-06-27 Thread ura
thanks for responding here. the 206 code was advised by every tutorial i found online. i am using nginx 1.7.2, so cannot upgrade. >You shouldn't try to add Accept-Ranges header manually. It will >be added automatically when nginx supports range requests to the >resource in question. how do i noti

Re: difficulty adding headers

2014-06-27 Thread Maxim Dounin
Hello! On Fri, Jun 27, 2014 at 11:50:47AM -0400, ura wrote: > i need to ensure the Accept-Ranges header is present to serve video files > while supporting forward/backwards seeking. > i notice in many tutorials for nginx that this header is shown as being > present in server response headers by d

Re: Upstream performances: what if one node only ?

2014-06-27 Thread Nicolas Flinois
Many thanks Maxim. Have a nice week-end.. Nicolas FLINOIS ALTEN Contracting Company Amadeus, Sales & e-Commerce Platform T: + 33 (0) 4 92 94 63 50 (Ext:6350) nicolas.flin...@amadeus.com www.amadeus.com/ From: Maxim Dounin To: nginx@nginx.org, Date: 27/06/2014 18:35 Subject:

Re: Upstream performances: what if one node only ?

2014-06-27 Thread Maxim Dounin
Hello! On Fri, Jun 27, 2014 at 03:53:24PM +0200, Nicolas Flinois wrote: > Hi all, > > I am wondering about the possible extra-cost of using a single-node > upstream into proxy_pass compared with 'proxy_pass host' directly. > I need to automate application servers move, and find convenient to u

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
So the soloution could be a different hard drive possibly a solid state drive ? This is my current hard drive http://www.hgst.com/hard-drives/enterprise-hard-drives/enterprise-sata-drives/ultrastar-7k4000 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251238#msg-251238 _

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
Looking at the disk activity access to disk is using all your resources not nginx. Here http://s633.photobucket.com/user/C0nw0nk/media/Untitled-5.png.html you see nginx itself is waiting for disk IO to complete, all processes are doing just about nothing other then waiting for the harddisk, the mai

difficulty adding headers

2014-06-27 Thread ura
i need to ensure the Accept-Ranges header is present to serve video files while supporting forward/backwards seeking. i notice in many tutorials for nginx that this header is shown as being present in server response headers by default, yet not on my present setup. i have used the following to add

Matching a href spec with Lua regex

2014-06-27 Thread vamshi
Hi, I am trying to modify the response body in the following way : If there href="http://www.google.com";, I will convert it to href="http://nginx-ip/?_url_={url-encoded-form-of www.google.com} This is what I have in my nginx.conf location / { body_filter_by_lua

Re: Nginx Windows High Traffic issues

2014-06-27 Thread c0nw0nk
I also just to try and check if it was my connection limit enabled nginx_status and this was my output. Active connections: 1032 server accepts handled requests 8335 8335 12564 Reading: 0 Writing: 197 Waiting: 835 How can i fix the I/O issue why is nginx consuming so much in the first place

Upstream performances: what if one node only ?

2014-06-27 Thread Nicolas Flinois
Hi all, I am wondering about the possible extra-cost of using a single-node upstream into proxy_pass compared with 'proxy_pass host' directly. I need to automate application servers move, and find convenient to update upstream definitions only (defined into dedicated files). Solution1: upstre

[PROPOSAL PATCH] use a return code for ngx_http_close_request()

2014-06-27 Thread crespin
Hello, here is another path still on ngx_http_request.c. In function ngx_http_close_request(), the second parameter is an error code. This error code is used in ngx_http_free_request() to set the HTTP status code if it's not present or if no bytes are already sent. Use NGX_OK instead of zero see

[PROPOSAL PATCH] use a return code for ngx_http_terminate_request()

2014-06-27 Thread crespin
Hello, Reading ngx_http_request.c source code, I notice some call to ngx_http_terminate_request() is called sometimes with 0 instead of a return code. 0 is a correct valid for a return code ... it's NGX_OK. Is the patch valid ? It's based on nginx-1.7.2 version. Thanks for your reply. yves

Re: Recommended spdy configuration

2014-06-27 Thread Valentin V. Bartenev
On Wednesday 25 June 2014 07:34:58 khav wrote: > What is the most suitable value according to you for the following > directives `spdy_headers_comp` and `spdy_chunk_size` . i want to optimize > spdy to get better performance.I am only using Nginx as my webserver (No > apache or any other software).