Re: NGINX redirection issue

2014-08-08 Thread manish-ezest
Hello Maxim, The server_name(website) is a dummy name as I don't want to disclose the site name. I might have mistaken while editing the name. But I ensure you that the logs I have provided is correct. I am pasting my original configuration which is working like a charm. If I change anything from

Re: Override Content-Type header with proxied requests

2014-08-08 Thread manish-ezest
Hello Wandenberg, Yes, the back-end(s3 bucket) is sending Content-Type header for each request and what I heard from the developers that the header is must for the site to work properly. The issue started when I got the request of enabling content-type header of all the json files to application

Re: [nginx-announce] nginx-1.7.4

2014-08-08 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.7.4 for Windows http://goo.gl/sj1eGt (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announcements are also availab

Re: [nginx-announce] nginx-1.6.1

2014-08-08 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.6.1 for Windows http://goo.gl/u4X4Pl (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announcements are also availab

Re: Any suggestions for active Ubuntu nginx-mainline repo?

2014-08-08 Thread talkingnews
x64architecture Wrote: --- > The nginx-extras package is only available in the nginx ppa. The > official nginx package only provides a vanilla nginx install (no third > party modules). Ah, OK. Thank you. Bad news then. If the nginx ppa has stoppe

Re: Any suggestions for active Ubuntu nginx-mainline repo?

2014-08-08 Thread Kurt Cancemi
The nginx-extras package is only available in the nginx ppa. The official nginx package only provides a vanilla nginx install (no third party modules). --- Kurt Cancemi http://www.getwnmp.org On Fri, Aug 8, 2014 at 2:14 PM, talkingnews wrote: > Aleksandar Lazic Wrote: > >> Why don't using the n

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Gabriel Arrais
Maxim Dounin wrote in post #1154708: > Hello! > > On Fri, Aug 08, 2014 at 08:27:54PM +0200, Gabriel Arrais wrote: > >> >> ?fq=xx&sm=0&PageNumber=1&fq=yy >> >> return $filtered_args; >> } >> '; >> proxy_cache_key $host:$uri?$filtered_args; >> >> Will do the job? > > Doing

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Maxim Dounin
Hello! On Fri, Aug 08, 2014 at 08:27:54PM +0200, Gabriel Arrais wrote: > Maxim Dounin wrote in post #1154691: > > Hello! > > > > On Fri, Aug 08, 2014 at 05:06:55PM +0200, Gabriel Arrais wrote: > > > >> The same problem would occur using the variable $args right? > > Sure. > > > >> Example: > >>

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Gabriel Arrais
Maxim Dounin wrote in post #1154691: > Hello! > > On Fri, Aug 08, 2014 at 05:06:55PM +0200, Gabriel Arrais wrote: > >> The same problem would occur using the variable $args right? > Sure. > >> Example: >> ?fq=xx&sm=0&PageNumber=1 and >> ?fq=xx&sm=0&PageNumber=1&fq=yy

Re: Any suggestions for active Ubuntu nginx-mainline repo?

2014-08-08 Thread talkingnews
Aleksandar Lazic Wrote: > Why don't using the nginx one? I would love to, but I tried before and I couldn't install nginx-extras, and I still don't see nginx-extras in the repo. Am I missing something? I rely heavily on several of the modules compiled into extras, so this is crucial for me. Which

Re: Can NGINX add an empty payload

2014-08-08 Thread Maxim Dounin
Hello! On Fri, Aug 08, 2014 at 12:49:07PM -0400, matt_l wrote: > Hello > > I have taken the NGINX training but the following question was not covered. > I am hoping I can get some help from the community. Thank you in advance. > > Can NGINX add empty (or static non empty) payload to a request w

Can NGINX add an empty payload

2014-08-08 Thread matt_l
Hello I have taken the NGINX training but the following question was not covered. I am hoping I can get some help from the community. Thank you in advance. Can NGINX add empty (or static non empty) payload to a request when proxying to a server in the Location directive (or elsewhere) For exampl

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Maxim Dounin
Hello! On Fri, Aug 08, 2014 at 05:06:55PM +0200, Gabriel Arrais wrote: > Hi Maxim, first thank you very much for your answer! > > > Maxim Dounin wrote in post #1154662: > > Hello! > > ... > > Note well that even if you'll be able to filter arguments, there > > is an additional problem of order

Re: Override Content-Type header with proxied requests

2014-08-08 Thread Wandenberg Peixoto
One question, your backend are sending the content-type header if you made the request to it? If yes, the value is right? If not, I think the problem is on backend configuration. You can set it on the nginx using the map like I suggest, but will have to add all possible file types on the map, like

Re: [PATCH] proposal to remove unused macro ngx_sleep()

2014-08-08 Thread Maxim Dounin
Hello! On Thu, Aug 07, 2014 at 10:05:16AM -0400, crespin wrote: > Hello, > > ngx_sleep() macro is unused. > > regards, > > yves > > > # HG changeset patch > # User Yves Crespin > # Date 1407420247 -7200 > # Node ID 8120c2937062998497546a3ecb38b78bb302fe34 > # Parent 97fcc94109c0ea7b929f7fa5

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Gabriel Arrais
Hi Maxim, first thank you very much for your answer! Maxim Dounin wrote in post #1154662: > Hello! > ... > Note well that even if you'll be able to filter arguments, there > is an additional problem of order of the arguments. > The same problem would occur using the variable $args right? > Simp

Re: NGINX redirection issue

2014-08-08 Thread Maxim Dounin
Hello! On Thu, Aug 07, 2014 at 12:02:43PM -0400, manish-ezest wrote: > Hello Maxim, > > Thank you for your response. Here is the my nginx settings [...] > server { > listen 80; > server_name www-aaa.com; Note that server_name doesn't match domain in logs you've provided and in other parts of

Re: Override Content-Type header with proxied requests

2014-08-08 Thread manish-ezest
Hello wandenberg, This procedure is not working for internet explorer. The CSS are not loading properly. so we have to somehow get the Content-Type in the header. Is there anything we can use? --Manish Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239473,252416#msg-252416 __

Re: [PATCH] Implemention ngx_strstrn() is no longer exposed

2014-08-08 Thread Maxim Dounin
Hello! On Fri, Aug 08, 2014 at 05:50:04AM -0400, crespin wrote: > Hello, > > Implementing ngx_strstrn () is exposed. This can be misleading. > > regards, > > yves > > > # HG changeset patch > # User Yves Crespin > # Date 1407491120 -7200 > # Node ID 505ec91d60fefa776bc2c7fcbd6d980cc85b6b5e >

Re: Initialize ngx_buf_t in ngx_create_temp_buf()

2014-08-08 Thread Maxim Dounin
Hello! On Fri, Aug 08, 2014 at 02:56:12AM -0400, crespin wrote: > Hello, > > I don't understand why b->last is used to initialize b->end. > Why it's not : > b->end = b->start + size; There is no real difference, though current code produces 1 less assembly instruction at least on gcc 4.2 w

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Maxim Dounin
Hello! On Fri, Aug 08, 2014 at 08:37:39AM +0200, Gabriel Arrais wrote: > Is it possible somehow to use the global modifier in a regex map match? > > I'm trying to use the map directive to filter the query string leaving > my proxy_cache_key with only known parameters. > > For the first test I'v

Re: Any suggestions for active Ubuntu nginx-mainline repo?

2014-08-08 Thread Aleksandar Lazic
Am 07-08-2014 22:13, schrieb talkingnews: For a while I was quite happily using the ubuntu nginx ppa repo to get my nginx mainline fix (https://launchpad.net/~nginx/+archive/ubuntu/development) [snipp] Any pointers to nginx-extra Ubuntu repos bring the the 1.7.4 goodness would be appreciat

Re: NGINX redirection issue

2014-08-08 Thread manish-ezest
Hello Maxim, I am getting 499 error when I try using try files directive as you suggested. It got stuck and no response from the server. 50.50.50.50 - - [08/Aug/2014:10:12:01 +0200]"GET /aaa/bbb/ccc/index.html HTTP/1.1" 499 0 "-" "Wget/1.14 (linux-gnu)" 4.678 --Manish Posted at Nginx Forum: ht

Re: gzip if in location example

2014-08-08 Thread itpp2012
This I suppose: location / { try_files $uri $uri/ =404; if ($scheme = http) { gzip on; } index index.html index.htm; } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252407,252409#msg-252409 _

[PATCH] Implemention ngx_strstrn() is no longer exposed

2014-08-08 Thread crespin
Hello, Implementing ngx_strstrn () is exposed. This can be misleading. regards, yves # HG changeset patch # User Yves Crespin # Date 1407491120 -7200 # Node ID 505ec91d60fefa776bc2c7fcbd6d980cc85b6b5e # Parent 74265a0edba677c967f532de789a4589436aa5fb Implemention ngx_strstrn() is no longer ex

gzip if in location example

2014-08-08 Thread itpp2012
Syntax: gzip on | off; Default:gzip off; Context:http, server, location, if in location Is there an example of this "if in location" usage ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252407,252407#msg-252407 ___