Re: Nginx 1.7.0: location @php

2014-06-01 Thread support
yes. update and test 02.06.2014 10:24, wishmaster пишет: I have the same problem in my php-application. Admin folder is protected with auth_basic and the rest folders - without auth. I have not found any solution except code duplication for php location. --- Original message --- Fr

Re[2]: Nginx 1.7.0: location @php

2014-06-01 Thread wishmaster
I have the same problem in my php-application. Admin folder is protected with auth_basic and the rest folders - without auth. I have not found any solution except code duplication for php location. --- Original message --- From: "TECK" Date: 2 June 2014, 06:47:47 > Francis, > > We

Re: Nginx 1.7.0: location @php

2014-06-01 Thread TECK
Francis, We are going in circles without reaching a solution. I think what I asked is very clear and simple: How do I avoid repeating a segment of configuration code assigned to @php into various locations: location @php { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+

Re: location for php except

2014-06-01 Thread Philipp Kraus
Am 01.06.2014 um 20:16 schrieb Francis Daly : > Strictly, it's that this location is the one that best matches the > request. ("first" doesn't really apply.) > > See http://nginx.org/r/location for details. okay, I have try to swap both location, imho I have translate "best location" with "fir

Re: location for php except

2014-06-01 Thread Francis Daly
On Sun, Jun 01, 2014 at 07:37:51PM +0200, Philipp Kraus wrote: Hi there, > I'm using nginx with Gitlab, so in the Gitlab some PHP projects are hosted > and on other directory there exists some PHP scripts. > > For the PHP files I use: > > location ~ \.php$ { > and for my Gitlab I'm using:

Invalid ports added in redirects on AWS EC2 nginx

2014-06-01 Thread allang
On AWS, I'm trying to migrate a PHP Symfony app running on nginx. I want to be able to test the app by directly talking to the EC2 server and via an Elastic Load Balancer (ELB -the public route in). I've setup the ELB to decrypt all the SSL traffic and pass this on to my EC2 server via port 80, as

location for php except

2014-06-01 Thread Philipp Kraus
Hello, I'm using nginx with Gitlab, so in the Gitlab some PHP projects are hosted and on other directory there exists some PHP scripts. For the PHP files I use: location ~ \.php$ { fastcgi_split_path_info ^(.+?\.php)(/.*)$; if (!-f $document_root$fastcgi_script_name)

Re: Whitelisting Req/Conn Limiting

2014-06-01 Thread B.R.
I am glad my explanations were clear enough, though I doubt I said more than the docs which, again, seem pretty clear to me. You could make suggestions on how to improve the docs by quoting what you think would gain to be rephrased better. Based on my previous advice, you already know that using '

Email Reverse Proxy issue

2014-06-01 Thread omercz
I am using Nginx as an Email reverse proxy. The email client sends a request to the nginx, the nginx fetch the WHOLE email(message) from exchange server, and only then manipulates it and sends it back to client. Email Client<>Nginx<> Office 365 Everything is working great, besides the fol

Re: Whitelisting Req/Conn Limiting

2014-06-01 Thread SupaIrish
Thanks for the reply 1) Your explanation clarified my misunderstanding, much appreciated. 2) Your suggestion would make a lot of sense. But after reading your response, I realized I wrote the check wrong in my example. I'm trying to whitelist an inbound request from a specific server, not one t