Re: misunderstood regex location

2014-05-05 Thread Igor Sysoev
On May 6, 2014, at 2:38 , dcaillibaud wrote: > Hi, > > I understood that prefix location was read, then regex location and it stops > on a ^~ match > > Why with this config > > location / { > location ~ .+\.(js|css|ico|png|gif|jpg|jpeg|pdf|zip|html|htm)$ { > expires

Re: Facing content-type issue with try_files.

2014-05-05 Thread Makailol Charls
Hello, Could someone help me with my previous query? Actually the problem is that when image file doesn't have an extension it is not being served with proper content type. Instead it is served with "application/octet-stream" content-type. Due to this browser try to download image instead of disp

Image Filter Error

2014-05-05 Thread Indo Php
Hi When doing resizing on the image, I got the error below gd-png:  fatal libpng error: IDAT: CRC error gd-png error: setjmp returns error condition 22014/05/06 10:45:55 [error] 6137#0: *4879 gdImageCreateFromPngPtr() failed while sending to client, client: x.x.x.x, server: my.hostname.com, requ

Re: Issue nginx

2014-05-05 Thread Vishal Mestri
Hi All, please go through below email and help me resolve issue as i am new to nginx. Regards, Vishal - Original Message - From: "Vishal Mestri" To: nginx@nginx.org, st...@greengecko.co.nz Sent: Monday, May 5, 2014 1:26:15 PM Subject: Re: Issue nginx Hi Steve, We are g

How does the Proxy Cache Key Lookup actually happen?

2014-05-05 Thread lovekmla
I am using part of the request_body as the Cache_key in setting up the Proxy_cache_key and I was wondering how the actual lookup / matching of the Cache would occur? >From the documentation, it looks like it's a MD5 encryption of the Cache Key that I set. Does that mean the cache_key lookup woul

Re: NGINX 2014 survey: I know you have opinions.

2014-05-05 Thread Aleksandar Lazic
Hi Sarah. Great, thanks. BR Aleks Am 05-05-2014 19:22, schrieb Sarah Novotny: Hi Aleks, We have a team analyzing the results over the next few weeks. (There was an amazing number of responses.) I’ll post a summary on our blog[0] when we finish that analysis. sarah [0] http://nginx.com/blo

Re: misunderstood regex location

2014-05-05 Thread Francis Daly
On Mon, May 05, 2014 at 06:38:45PM -0400, dcaillibaud wrote: Hi there, > location ^~ "/banniere_rotative/.*\.css$" { > > doesn't (inside prefix location or not) > > What's the obvious mistake I made in my regex ? ^~ is a prefix match, not a regex match. http://nginx.org/r/location f

Re: Query strings duplicating on 301 redirect

2014-05-05 Thread Justin Dorfman
@Richard Interesting. I shall give that a try. Regards, Justin Dorfman Director of Developer Relations MaxCDN Email / IM: jdorf...@maxcdn.com Mobile: 818.485.1458 Twitter: @jdorfman On M

misunderstood regex location

2014-05-05 Thread dcaillibaud
Hi, I understood that prefix location was read, then regex location and it stops on a ^~ match Why with this config location / { location ~ .+\.(js|css|ico|png|gif|jpg|jpeg|pdf|zip|html|htm)$ { expires 25h; } } location ^~ /banniere_rotative/

Re: Query strings duplicating on 301 redirect

2014-05-05 Thread Richard Stanway
Just a note, I think the preferred way to do this is with "return". It's much simpler (no rewrite / PCRE overhead): location / { if ($scheme = http) { return 301 https://$http_host$request_uri; } On Mon, May 5, 2014 at 10:54 PM, Justin Dorfman wrote: > Thanks Francis, worked perfectly. > > > R

Re: Query strings duplicating on 301 redirect

2014-05-05 Thread Justin Dorfman
Thanks Francis, worked perfectly. Regards, Justin Dorfman Director of Developer Relations MaxCDN Email / IM: jdorf...@maxcdn.com Mobile: 818.485.1458 Twitter: @jdorfman On Mon, May 5, 201

Re: Query strings duplicating on 301 redirect

2014-05-05 Thread Francis Daly
On Mon, May 05, 2014 at 12:14:48PM -0700, Justin Dorfman wrote: Hi there, > I am trying to redirect (301) all HTTP request to TLS (HTTPS) and I keep > getting duplicate query strings added to the uri. e.g.: http://nginx.org/r/rewrite Second last paragraph looks like it should fix it. f

Query strings duplicating on 301 redirect

2014-05-05 Thread Justin Dorfman
Hey All, I am trying to redirect (301) all HTTP request to TLS (HTTPS) and I keep getting duplicate query strings added to the uri. e.g.: curl -I "http://foo.bar.example.com/foobar.css?v=2"; HTTP/1.1 301 Moved Permanently [clipped] Location: http://foo.bar.example.com/foobar.css?v=2?v=2 Nginx co

Re: NGINX 2014 survey: I know you have opinions.

2014-05-05 Thread Sarah Novotny
Hi Aleks, We have a team analyzing the results over the next few weeks. (There was an amazing number of responses.) I’ll post a summary on our blog[0] when we finish that analysis. sarah [0] http://nginx.com/blog/ On May 4, 2014, at 1:38 AM, Aleksandar Lazic wrote: > Dear Sarah. > > Du

Re: Mono MVC Timeout

2014-05-05 Thread zvn
Hello, OpenBSD grey.my.domain 5.5 GENERIC.MP # mono --version Mono JIT compiler version 2.10.9 # nginx -V nginx version: nginx/1.4.4 i have exactly the same problem, i run the aspx with a very explicit path: # fastcgi-mono-server4 /applications=grey:/index.aspx:./moon/index.aspx /socket=tcp:127

Re: ngx_cache_purge + query string

2014-05-05 Thread Indo Php
Thanks! On Monday, May 5, 2014 5:35 PM, Piotr Sikora wrote: Hello, > Below is my config > >        location ~ /purge(/.*) { >                allow  127.0.0.1; >                allow  10.10.0.0/24; >                deny    all; >                proxy_cache_purge  one  backend$1; >       

Re: ngx_cache_purge + query string

2014-05-05 Thread Piotr Sikora
Hello, > Below is my config > > location ~ /purge(/.*) { > allow 127.0.0.1; > allow 10.10.0.0/24; > denyall; > proxy_cache_purge one backend$1; > } $1 doesn't contain query strings, you should use: prox

Re: ngx_cache_purge + query string

2014-05-05 Thread Indo Php
Hi, Below is my config     location ~ /purge(/.*) {     allow   127.0.0.1;     allow   10.10.0.0/24;     deny    all;     proxy_cache_purge  one  backend$1;     } On Monday, May 5, 2014 4:20 PM, Piotr Sikora wrote: Hello, > is ngx_cac

Re: ngx_cache_purge + query string

2014-05-05 Thread Piotr Sikora
Hello, > is ngx_cache_purge support to purge file with query string? Yes. > I've tried with no success > > Our example page > > http://www.example.com/images/file.jpg?v=1.0 > > Is there any additional config I have to put? You didn't provide your current config, so no one can tell. Best regard

ngx_cache_purge + query string

2014-05-05 Thread Indo Php
Hi, is ngx_cache_purge support to purge file with query string? I've tried with no success Our example page http://www.example.com/images/file.jpg?v=1.0 Is there any additional config I have to put?___ nginx mailing list nginx@nginx.org http://mailma

Re: Issue nginx

2014-05-05 Thread Vishal Mestri
Hi Steve, We are getting below error in log file 2014/05/05 07:50:29 [error] 8800#0: *21 upstream prematurely closed connection while reading upstream, client: 14.97.74.48, server: 168.189.9.09, request: "GET /Stream.html?s=0&d=%22168.189.9.09%22&p=0&t=1399276681085 HTTP/1.1", upstream:

Re: Issue nginx

2014-05-05 Thread Vishal Mestri
Thanks for your immediate reply steve. But I just want to know whether we can log request and response headers in nginx, for more debugging. As far as code is concerned , we are using , it is running if we don't use nginx. Only when we use proxy pass, it is failing. One important point

Re: Issue nginx

2014-05-05 Thread Steve Holdoway
Hi, On Mon, 2014-05-05 at 12:21 +0530, Vishal Mestri wrote: > I am facing issue with nginx. > > > Its working on Chrome. But not on IE10 and firefox. > > > I am using proxy pass, please find attached nginx.conf file attached > along with. > > > > > OUTPUT OF command: > [root@erttrepsg63 ~]