Re: Nginx 1.7.0: location @php

2014-05-30 Thread TECK
Hi Francis, > Answer #1: what does "does not work" mean? When I process an URI request, it downloads the file instead of executing the PHP code. What I try to achieve is very simple, use @php as location to execute PHP code instead of repeating it over and over in various locations. Here it is a

reverse proxy through upstream proxy

2014-05-30 Thread pba
I'm trying to configure nginx as a reverse proxy where the upstream traffic has to go through another proxy (squid in this case) without success. Since nginx does not support (as far as I can tell) passing a proxy for upstream and because I need to reverse proxy only one domain (test.com) I've trie

Re: Whitelisting Req/Conn Limiting

2014-05-30 Thread B.R.
1°) To me, the map docs are fairly clear... In short, the map directive works as follow: With: map $foo $bar { "test1" "value1" ... } Whenever the value in $foo matches a value of the first column, $bar will be set to the value of the second column, ie: if $foo = "test1", then $bar <- "value1" I

Whitelisting Req/Conn Limiting

2014-05-30 Thread SupaIrish
Hello! I'm want to limit req/connections but have certain requests skip or whitelisted from the throttling. I've found some prior threads that got me this, which I think is working. Here's just the relevant config. Is this the best/correct way to do this? And if so I don't really understand th

Re: Whitelisting Req/Conn Limiting

2014-05-30 Thread SupaIrish
Gist for easier reading https://gist.github.com/supairish/748c85552b2f7047a36a Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250510,250511#msg-250511 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx Rewrite for Proxy Pass

2014-05-30 Thread bwellsnc
J, It's not a misconfigured device, that is how fortinet does it's webportal vpn access to internal websites. Talked to fortinet, that's how it works. Francis, I will look at that. Thanks for your help! On Fri, May 30, 2014 at 12:59 PM, Francis Daly wrote: > On Fri, May 30, 2014 at 11:55:32A

Re: Nginx Rewrite for Proxy Pass

2014-05-30 Thread Francis Daly
On Fri, May 30, 2014 at 11:55:32AM -0400, bwellsnc wrote: Hi there, > This is the issue. I am using a fortigate device to protect my network and > I want to use the https connection in the web portal to access my Jira > instance. The problem is that jira always expects a > https://jira.internal

Re: Nginx Rewrite for Proxy Pass

2014-05-30 Thread Jonathan Matthews
On 30 May 2014 16:55, bwellsnc wrote: > Hello everyone, I have an interesting issue. I am using nginx 1.6.0 to > proxy back to my Jira instance. This is working great within my network. > This is the issue. I am using a fortigate device to protect my network and > I want to use the https connec

[ANNOUNCE] Tengine-2.0.3 is released

2014-05-30 Thread Chuanwen Chen
Hi folks, Tengine-2.0.3 (development version) has been released. You can either checkout the source code from GitHub: https://github.com/alibaba/tengine or download the tarball directly: http://tengine.taobao.org/download/tengine-2.0.3.tar.gz We introduced ngx_http_reqstat_module to provides acce

Re: [ANNOUNCE] Tengine-2.0.2 is released

2014-05-30 Thread Chuanwen Chen
Hi folks, Tengine-2.0.3 (development version) has been released. You can either checkout the source code from GitHub: https://github.com/alibaba/tengine or download the tarball directly: http://tengine.taobao.org/download/tengine-2.0.3.tar.gz We introduced ngx_http_reqstat_module to provides acce

Nginx Rewrite for Proxy Pass

2014-05-30 Thread bwellsnc
Hello everyone, I have an interesting issue. I am using nginx 1.6.0 to proxy back to my Jira instance. This is working great within my network. This is the issue. I am using a fortigate device to protect my network and I want to use the https connection in the web portal to access my Jira instan

Re: Does nginx support openstack swift API?

2014-05-30 Thread Andy
On Thu, May 29, 2014 at 8:25 PM, Maxim Dounin wrote: > Hello! > > On Thu, May 29, 2014 at 07:04:46PM +0800, Andy wrote: > > > Hello guys, > > > > I'm trying to find a way to use OpenStack SWIFT with nginx, the below are > > request steps: > > > > 1. nginx is configured as proxy cache > > 2. clien

Server context Vs Location context

2014-05-30 Thread Adarsh Pugalia
Is there any way to check in a command's set function if the command was invoked i.e. the command was called from server context or location context. For example, if I write a command that can be used both in server context and location context, is there a way to differentiate from where it was cal