Re: Upstrea/ Keepalive strange behaviour

2013-12-11 Thread David DONCHEZ
Hello Maxim, As per HTTP specification, persistent connection can be closed by the server at any time, and clients should handle this. That is, that's more or less normal, and nginx is expected to handle this fine by using another upstream server if this happens. Thanks for your

$_SERVER['QUERY_STRING'] plus-signs and whitespace

2013-12-11 Thread basti
Hello, I have the following Problem with Nginx 1.2.1-2.2 running on 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 GNU/Linux A String like $_SERVER['QUERY_STRING'] = test=1+2 will get $_GET['test'] = 1 2 I have found the following: |$_GET||[||q||] = ||strtr||(||$_GET||[||q||], ||+||, || ||);| at

Re: $_SERVER['QUERY_STRING'] plus-signs and whitespace

2013-12-11 Thread smallfish
'+' in url equla ' ' (base64). if value has '+', you must encode it. example: $a = 1+1; echo urlencode($a); the correct url is: http://x.com/?test=1%2B1; -- smallfish http://chenxiaoyu.org On Wed, Dec 11, 2013 at 6:19 PM, basti black.flederm...@arcor.de wrote: Hello, I have the following

Re: Nginx Deployments in Practice

2013-12-11 Thread Brian Akins
I build packages using omnibus - https://github.com/bakins/omnibus-nginx ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Subdomains no longer work

2013-12-11 Thread Peleke
Thanks for the DNS hint, my provider must have done something wrong, now it is fixed, great! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244807,245415#msg-245415 ___ nginx mailing list nginx@nginx.org

Re: Nginx Deployments in Practice

2013-12-11 Thread Jeffrey Walton
2013/12/11 Brian Akins br...@akins.org: I build packages using omnibus - https://github.com/bakins/omnibus-nginx Thanks Brian. It appears omnibus-nginx does not contain the nginx sources. Is it safe to assume you provide them? What version of nginx do you currently use? Do you have any custom

Re: [Patch] possible mutex starvation issue affects all nginx Linux versions.

2013-12-11 Thread itpp2012
From the patch author: Hi Maxim, I apologize for my late reply: I just had now time to sort this out. The short answer to your remarks is: the first patch is partially correct, just incomplete, and could be easily completed with the addition of a call to ngx_disable_accept_events(...)

Hg checkout missing config and friends

2013-12-11 Thread Jeffrey Walton
I performed a checkout to the latest stable: $ hg clone http://hg.nginx.org/nginx -u release-1.4.4 I tried to run config, and it appears to be missing: $ ./config -bash: ./config: No such file or directory $ nginx-release-1.4.4$ ls autoconfcontribdocsmiscsrc The

Re: OpenSSL Locks

2013-12-11 Thread Jeffrey Walton
On Wed, Dec 11, 2013 at 10:25 AM, Maxim Dounin mdou...@mdounin.ru wrote: Hello! On Wed, Dec 11, 2013 at 05:55:16AM -0500, Jeffrey Walton wrote: I need to do some additional processing with OpenSSL in a custom module. I noticed ngingx does not set any locks in ngx_ssl_init (from

Re: Hg checkout missing config and friends

2013-12-11 Thread Piotr Sikora
Hey, $ ./config -bash: ./config: No such file or directory ./auto/configure Best regards, Piotr Sikora ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [Patch] possible mutex starvation issue affects all nginx Linux versions.

2013-12-11 Thread Maxim Dounin
Hello! On Wed, Dec 11, 2013 at 07:57:32AM -0500, itpp2012 wrote: [...] A) about the added line ngx_accept_mutex_held=0 in ngx_event.c [...] The line above, between 259 and 260, tried to fix this too, but, there, a call to ngx_disable_accept_events(...) is missing. In fact to be completely

Re: Imap proxy

2013-12-11 Thread volga629
Hello Maxim, Usually is normal setup of EOip tunnels though transport ipsec (transparent lan). And from security prospective the most bigger threat is coming from inside. Outside intrusion possible, but it match more complicated. I confirm that plain 143 proxy working good. I just wonder about

Re: alias

2013-12-11 Thread Matthew Ngaha
On Tue, Dec 10, 2013 at 10:17:25PM +, Matthew Ngaha wrote: The problem i've been having after looking in the error logs,is that it's still trying to find /admin/ in the default html root. That suggests that the configuration you are editing, and the configuration that nginx is using,

Re: alias

2013-12-11 Thread Francis Daly
On Wed, Dec 11, 2013 at 08:20:51PM +, Matthew Ngaha wrote: On Tue, Dec 10, 2013 at 10:17:25PM +, Matthew Ngaha wrote: That suggests that the configuration you are editing, and the configuration that nginx is using, are not the same. /home/matthew/src/nginx-1.4.3/conf/nginx.conf

Re: Nginx Deployments in Practice

2013-12-11 Thread 54chen
Omnibus seems use AgentZh's ngx tar.gz. See https://github.com/bakins/omnibus-nginx/blob/master/config/software/nginx.rb 2013/12/11 Jeffrey Walton noloa...@gmail.com 2013/12/11 Brian Akins br...@akins.org: I build packages using omnibus - https://github.com/bakins/omnibus-nginx Thanks

Re: Nginx Deployments in Practice

2013-12-11 Thread Yichun Zhang (agentzh)
Hello! On Wed, Dec 11, 2013 at 5:55 PM, 54chen wrote: Omnibus seems use AgentZh's ngx tar.gz. Just a side note: please never never put capital letters into my nick because I hate that. If you really want to capitalize names, please use my first name, Yichun, instead. Thank you for the

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

2013-12-11 Thread rand
As you already have libpcre installed, you don't need nginx to build it (and you don't need sources). If nginx isn't able to find the pcre itself, use something like this to tell where to look for headers and library: ./configure --with-cc-opt=-I/usr/local/include \

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

2013-12-11 Thread rand
./configure --with-cc-opt=-I/usr/local/include \ --with-ld-opt=-L/usr/local/lib64 works as promised, ... make ldd objs/nginx | egrep -i pcre libpcre.so.1 = /usr/local/lib64/libpcre.so.1 (0x7fc62c7e7000) Thanks. That is, it's only applies when

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

2013-12-11 Thread rand
oops. not quite ... on systems where ld.so.conf does NOT point to the pcre path -- i.e, on my production rather than dev boxes -- the RUNTIME link is incorrect, ldd objs/nginx | egrep -i pcre libpcre.so.1 = /usr/lib64/libpcre.so.1 (0x7fa719a0d000) This can be remedied by rpath'ing,

Проксирование http и https в одном конигурационном файле, на порты отличные от 80 и 443

2013-12-11 Thread mnsold
Подскажите, как можно организовать прокисрование http и https в одном конфигурационном файле, если есть несколько веб-серверов порты у которых отличаются от 80 и 443. Опишу общий вариант, чтобы было понятнее о чем речь, думаю в организациях, у которых множество сервисов, такое или очень похожее

PHP ошибки в nginx error log

2013-12-11 Thread greenh
Добрый день Имеется связка nginx/1.4.2+php5-fpm (PHP 5.3.27) Очень хочется при display_errors=off заставить php ошибки ложиться в nginx error.log. Единственный кривой способ, который я смог использовать - это через fastcgi_param указать error_log=nginx-error.log Но при этом я получаю два разных

Re: Проксирование http и https в одном конигурационном файле, на порты отличные от 80 и 443

2013-12-11 Thread mnsold
Тут наверное я еще не совсем правильно выразился, нужно описать конфигурацию не то чтобы в одном когфиге, а в одном блоке server {} и без повториний location {} с разницей только http-https. Posted at Nginx Forum: http://forum.nginx.org/read.php?21,245412,245426#msg-245426

Re: Проксирование http и https в одном конигурационном файле, на порты отличные от 80 и 443

2013-12-11 Thread Maxim Dounin
Hello! On Wed, Dec 11, 2013 at 10:23:50AM -0500, mnsold wrote: Тут наверное я еще не совсем правильно выразился, нужно описать конфигурацию не то чтобы в одном когфиге, а в одном блоке server {} и без повториний location {} с разницей только http-https. Повторюсь - вы, как мне кажется, не с

Re: патч для отключения заголовков Connection: keep-alive (еще раз)

2013-12-11 Thread Илья Шипицин
11 декабря 2013 г., 20:41 пользователь Maxim Dounin mdou...@mdounin.ru написал: Hello! On Wed, Dec 11, 2013 at 01:39:21AM +0600, Илья Шипицин wrote: 11 декабря 2013 г., 0:43 пользователь Maxim Dounin mdou...@mdounin.ru написал: Hello! On Tue, Dec 10, 2013 at 11:12:16PM +0600, Илья

Re: Проксирование http и https в одном конигурационном файле, на порты отличные от 80 и 443

2013-12-11 Thread Andrey Oktyabrskiy
On 11.12.2013 19:41, mnsold wrote: server { listen 80; ... include app - для http ... } server { listen 443 ssl; ... include apps - для https ... } в этом случае, location /app нужно описывать в 2х файлах Так и держите location /app в файле location_app, в файлах app и apps пишите include

Re: патч для отключения заголовков Connection: keep-alive (еще раз)

2013-12-11 Thread Maxim Dounin
Hello! On Wed, Dec 11, 2013 at 10:41:42PM +0600, Илья Шипицин wrote: 11 декабря 2013 г., 20:41 пользователь Maxim Dounin mdou...@mdounin.ru написал: Hello! On Wed, Dec 11, 2013 at 01:39:21AM +0600, Илья Шипицин wrote: 11 декабря 2013 г., 0:43 пользователь Maxim Dounin

Re: патч для отключения заголовков Connection: keep-alive (еще раз)

2013-12-11 Thread Илья Шипицин
12 декабря 2013 г., 0:04 пользователь Maxim Dounin mdou...@mdounin.ru написал: Hello! On Wed, Dec 11, 2013 at 10:41:42PM +0600, Илья Шипицин wrote: 11 декабря 2013 г., 20:41 пользователь Maxim Dounin mdou...@mdounin.ru написал: Hello! On Wed, Dec 11, 2013 at 01:39:21AM +0600, Илья

Re: Проксирование http и https в одном конигурационном файле, на порты отличные от 80 и 443

2013-12-11 Thread Maxim Dounin
Hello! On Wed, Dec 11, 2013 at 11:58:34AM -0500, mnsold wrote: [...] Согласитесь, N количество блоков server {} и N количество блоков location {} проще изменить, меньше вероятности допустить ошибки и понимать легче, чем N*2 количество блоков server {} и N*2 количество блоков location {}

Re: Проксирование http и https в одном конигурационном файле, на порты отличные от 80 и 443

2013-12-11 Thread Gena Makhomed
On 11.12.2013 18:58, mnsold wrote: Но вопрос в том, как проксировать одно приложение по http и https в одном блоке server {} и одном блоке location {} (без дублей), учитавая, что приложение на бэкэенде может быть доступно как в корне так и по контекстному пути, а порты отличаются от 80 и 443.

Re: Проксирование http и https в одном конигурационном файле, на порты отличные от 80 и 443

2013-12-11 Thread mnsold
Maxim Dounin Wrote: --- Согласитесь, N количество блоков server {} и N количество блоков location {} проще изменить, меньше вероятности допустить ошибки и понимать легче, чем N*2 количество блоков server {} и N*2 количество блоков