Re: custom error pages for retun directive

2014-08-26 Thread kay
Thanks! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252825,252880#msg-252880 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Can't get https to work

2014-08-26 Thread Matthew Ngaha
I feel really stupid now:( Thanks that fixed it. On Tue, Aug 26, 2014 at 10:56 PM, kyprizel wrote: > Try to use 192.168.1.102:443. > > > On Wed, Aug 27, 2014 at 1:40 AM, Matthew Ngaha wrote: >> >> I'm trying Nginx with Django on my localhost. I "Include" a >> django.conf in my main nginx.conf an

Re: Can't get https to work

2014-08-26 Thread kyprizel
Try to use 192.168.1.102:443. On Wed, Aug 27, 2014 at 1:40 AM, Matthew Ngaha wrote: > I'm trying Nginx with Django on my localhost. I "Include" a > django.conf in my main nginx.conf and in this included conf the > "server" "listens" for both http & https and sends either requests > upstream to

Can't get https to work

2014-08-26 Thread Matthew Ngaha
I'm trying Nginx with Django on my localhost. I "Include" a django.conf in my main nginx.conf and in this included conf the "server" "listens" for both http & https and sends either requests upstream to django. My browser reports this error: http://bpaste.net/show/855f9e401b7e Here's my django.co

Help with 1.6.0-1~precise

2014-08-26 Thread Jon Clayton
I'm trying to troubleshoot an issue with existing servers vs new servers for one of my environments, and one of the only differences I've stumbled across is a version bump in nginx. Older servers are running 1.6.0-1~precise on Ubuntu 12.04 and newer builds are using 1.6.1-1~precise. I was hopi

Re: Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 12:50:08PM -0400, c0nw0nk wrote: > I can't tell if this is working or not so i thought i would just ask and > perhaps someone can inform me but with nginx keep alive timeouts can we set > different timeout values per each location or file type being accessed ? > >

Re: Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread itpp2012
You should be able to test this with curl -k, see the curl manpage. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252851,252852#msg-252852 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread Styopa Semenukha
On Tuesday, August 26, 2014 12:50:08 PM c0nw0nk wrote: > I can't tell if this is working or not so i thought i would just ask and > perhaps someone can inform me but with nginx keep alive timeouts can we set > different timeout values per each location or file type being accessed ? > > Example : >

Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread c0nw0nk
I can't tell if this is working or not so i thought i would just ask and perhaps someone can inform me but with nginx keep alive timeouts can we set different timeout values per each location or file type being accessed ? Example : location ~ \.flv$ { flv; keepalive_timeout 60s; } location ~ \.mp

Re: custom error pages for retun directive

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 08:41:31AM -0400, kay wrote: > How can "if in location" influence productivity? There is no difference from performance point of view. -- Maxim Dounin http://nginx.org/ ___ nginx mailing list nginx@nginx.org http://mai

Re: Bugfix: requests might hang if resolver was used [...]

2014-08-26 Thread Maxim Konovalov
Hi Jason, On 8/26/14 12:47 PM, Jason Woods wrote: > Hi, > > Where do I need to ask if a bug fix will be treated as major and > ported to the 1.6 feature stable branch? > > Specifically, the following is having a significant impact for us, > and makes using resolver extremely unstable with proxy_

Re: custom error pages for retun directive

2014-08-26 Thread kay
How can "if in location" influence productivity? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252825,252844#msg-252844 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: custom error pages for retun directive

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 04:48:41AM -0400, kay wrote: > It is not possible to set custom error page. For example > /usr/share/nginx/404.html contains "test": > > server { > error_page 404 /404.html; > > if ($request_method = "GET") > return 404; > } > > location / { > proxy_pass http://

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
Thank you so much ;-) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252816,252831#msg-252831 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread Lucas Rolff
NL example: mtr admin.yproximite.fr HOST: server1Loss% Snt Last Avg Best Wrst StDev 1. hosted.by.leaseweb.com0.0% 20.5 0.5 0.5 0.5 0.0 2. te0-7-0-3.hvc3.evo.leaseweb. 0.0% 20.7 0.7 0.6 0.7 0.1 3. ix-5-1-1-0.thar1.HNN-Amsterd 0.0%

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
A last thing, can you provide a traceroute please ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252816,252828#msg-252828 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
Thanks, you really helped me, i'm gonna call my hosting provider to figure it out. I'm glad the nginx is not the cause here ;-) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252816,252827#msg-252827 ___ nginx mailing list nginx@nginx.org ht

custom error pages for retun directive

2014-08-26 Thread kay
It is not possible to set custom error page. For example /usr/share/nginx/404.html contains "test": server { error_page 404 /404.html; if ($request_method = "GET") return 404; } location / { proxy_pass http://localhost:8080; } location /404.html { /usr/share/nginx/404.html; } } curl -v 127.0

Bugfix: requests might hang if resolver was used [...]

2014-08-26 Thread Jason Woods
Hi, Where do I need to ask if a bug fix will be treated as major and ported to the 1.6 feature stable branch? Specifically, the following is having a significant impact for us, and makes using resolver extremely unstable with proxy_pass and variables. *) Bugfix: requests might hang if resolver

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread Lucas Rolff
I've been testing from a 10 megabit connection in Netherlands, 100mbit connection in netherlands, 500 mbit connection in netherlands, 500mbit connection in France, 100mbit connection in france and a 250 megabit connection in france, a 20 megabit connection in UK. Can ask people from Denmark to

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
Damn, I tested this on 3 different connection from 3 different providers (all based in France though, where the server are) - 20mbps ADSL by Orange - 1Gbps fiber by Free - 50 Mbps fiber by SFR Where are you based, what are you connexion specs please ? Posted at Nginx Forum: http://forum.nginx.or

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread Lucas Rolff
Takes me 2.65 seconds to load the PDF with no caching. tristanb wrote: Thanks for your message, I applyed your patched, restarted varnish, nginx and php5-fpm and it's still the same. Browing with browser cache off feels like the image are downloaded and displayed in a "progressive way" because

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
Thanks for your message, I applyed your patched, restarted varnish, nginx and php5-fpm and it's still the same. Browing with browser cache off feels like the image are downloaded and displayed in a "progressive way" because of the slowlyness. Another example too is this PDF of 3Mo who takes >3 m