configuration of 1000's entries

2013-09-27 Thread Shaun Savage
I have many virtual paths on one nginx server. What I mean by this is there can be many top level paths, where each one has a cookie, static files, and a upstream server. The way I am doing it now is just duplicate every path. Is there a way to do this 'faster' 'less writing' 'better'? I

Re: Stumped with issue of Nginx passing requests to php-fpm while using SSL

2013-09-27 Thread Maxim Dounin
Hello! On Thu, Sep 26, 2013 at 10:34:46PM +, Eric Tyrer wrote: Problem i have is that after attempting to login to wordpress over SSL php is not being processed/executed. I've got a Wordpress 3.5 multi-site using subdirectories. [...] nginx handles requests fine through port 80

Re: Stumped with issue of Nginx passing requests to php-fpm while using SSL

2013-09-27 Thread Maxim Dounin
Hello! On Fri, Sep 27, 2013 at 10:45:34AM +1200, Steve Holdoway wrote: OK, the problem is that you're listening on *http* on port 443. You need to use listen 443 ssl [default]; for ssl. The config posted uses ssl on, which is a valid way to configure ssl on all sockets used in

[ANNOUNCE] nginx-http-rdns module

2013-09-27 Thread Dmitry Shurupov
Hi guys! Our small Russian company (flant.com) is pleased to announce new module called nginx-http-rdns. As you can see from its name, the main feature of this module is making reverse DNS lookups to get DNS name of client's IP address. Features: * usual rDNS lookup (saving result in

Overhead when enabling debug?

2013-09-27 Thread mex
i have a question regarding the --with-debug - option; do i have to expect much overhead, when compiling nginx with that option, but have it disabled per default? i'd like to have it at hand for debugging certain issues every then and there. regards, mex Posted at Nginx Forum:

Re: Overhead when enabling debug?

2013-09-27 Thread itpp2012
From what I've seen here there is a small 5% overhead when compiled with debug and 5-10% while debug logging is active. I want my 5% :) so I make 2 versions. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243201,243202#msg-243202 ___ nginx

How to make proxy revalidate resource at origin

2013-09-27 Thread Thijs Koerselman
Hi, I posted this on stackoverflow already but I thought I might have more luck here :) http://stackoverflow.com/questions/19023777/how-to-make-proxy-revalidate-resource-from-origin In short, I can't find a way to make nginx revalidate a cached resource with the origin. Whenever nginx is in

Re: How to make proxy revalidate resource at origin

2013-09-27 Thread Andrew Alexeev
On Sep 27, 2013, at 7:09 PM, Thijs Koerselman thijskoersel...@gmail.com wrote: Hi, I posted this on stackoverflow already but I thought I might have more luck here :) http://stackoverflow.com/questions/19023777/how-to-make-proxy-revalidate-resource-from-origin In short, I can't find a

Re: [ANNOUNCE] nginx-http-rdns module

2013-09-27 Thread itpp2012
Here's a fix for a typo; ngx_http_rdns_module.c -l709 static void dns_handler(ngx_resolver_ctx_t * rctx) {; +l709 static void dns_handler(ngx_resolver_ctx_t * rctx) { Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243191,243213#msg-243213

Re: configuration of 1000's entries

2013-09-27 Thread Francis Daly
On Fri, Sep 27, 2013 at 04:22:25AM -0700, Shaun Savage wrote: Hi there, None of what follows is tested by me. So double-check before committing to anything :-) I have many virtual paths on one nginx server. What I mean by this is there can be many top level paths, where each one has a

Only recompile particular module when developing

2013-09-27 Thread aschlosberg
Hello I'm currently developing a new module and it's frustrating having to recompile every module each time. How can I skip all modules but my new one and then link the pre-existing object files? Does anyone have any other tips to streamline the module development / testing cycle? Thanks Arran

[nginx] Upstream: proxy_no_cache, fastcgi_no_cache warnings remo...

2013-09-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/e65be17e3a3e branches: changeset: 5391:e65be17e3a3e user: Maxim Dounin mdou...@mdounin.ru date: Fri Sep 27 16:50:13 2013 +0400 description: Upstream: proxy_no_cache, fastcgi_no_cache warnings removed. diffstat:

[nginx] Upstream: subrequest_in_memory fix.

2013-09-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/f1caf7b8ae1d branches: changeset: 5392:f1caf7b8ae1d user: Maxim Dounin mdou...@mdounin.ru date: Fri Sep 27 16:50:26 2013 +0400 description: Upstream: subrequest_in_memory fix. With previous code only part of u-buffer might be emptied in case of

[nginx] FastCGI: non-buffered mode support.

2013-09-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/8c827bb1b2b6 branches: changeset: 5394:8c827bb1b2b6 user: Maxim Dounin mdou...@mdounin.ru date: Fri Sep 27 16:50:40 2013 +0400 description: FastCGI: non-buffered mode support. diffstat: src/http/modules/ngx_http_fastcgi_module.c | 238

[nginx] Upstream: subrequest_in_memory support for SCGI and uwsg...

2013-09-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/1a070e89b97a branches: changeset: 5393:1a070e89b97a user: Maxim Dounin mdou...@mdounin.ru date: Fri Sep 27 16:50:34 2013 +0400 description: Upstream: subrequest_in_memory support for SCGI and uwsgi enabled. This was missed in 9d59a8eda373 when

[nginx] SSL: adjust buffer used by OpenSSL during handshake (tic...

2013-09-27 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/a720f0b0e083 branches: changeset: 5395:a720f0b0e083 user: Maxim Dounin mdou...@mdounin.ru date: Fri Sep 27 19:39:33 2013 +0400 description: SSL: adjust buffer used by OpenSSL during handshake (ticket #413). diffstat:

Когда может возникнуть ситуация, что rev-instance != instance?

2013-09-27 Thread megalodon
Добрый день. В функции ngx_epoll_process_events() есть такой участок кода: for (i = 0; i events; i++) { c = event_list[i].data.ptr; instance = (uintptr_t) c 1; c = (ngx_connection_t *) ((uintptr_t) c (uintptr_t) ~1); rev = c-read; if (c-fd == -1 ||

Nginx and Jboss AS

2013-09-27 Thread Vurtatoo
Всем привет. Как передать доменное имя джейбосу, и как его получить? Сейчас сервер запущен как демон коммандой ./standalone.sh Конфиг файл, вернее его часть location ~ /myapp/ { proxy_pass http://127.0.0.1:8080; } пытался получить имя домена, по которому

Re: Nginx and Jboss AS

2013-09-27 Thread Роман Москвитин
Дык установи заголовок Host в что тебе надо... :) 2013/9/27 Vurtatoo nginx-fo...@nginx.us Всем привет. Как передать доменное имя джейбосу, и как его получить? Сейчас сервер запущен как демон коммандой ./standalone.sh Конфиг файл, вернее его часть location ~ /myapp/ {

Re: [Анонс] Модуль nginx-http-rdns

2013-09-27 Thread Peter B. Pokryshev
On Fri, 27 Sep 2013 16:29:50 +0400 Dmitry Shurupov dmitry.shuru...@flant.ru wrote: Всем привет! Представляю вниманию сообщества модуль nginx-http-rdns, реализующий простой механизм контроля доступа по доменному имени клиента (имя определяется по результатам выполнения обратного

Re: [Анонс] Модуль nginx-http-rdns

2013-09-27 Thread Peter B. Pokryshev
On Fri, 27 Sep 2013 16:52:40 +0400 Dmitry Shurupov dmitry.shuru...@flant.ru wrote: On 27.09.2013 16:50, Peter B. Pokryshev wrote: Привет. Нет обратки - значит бот? Далеко не факт. Я про тоже, а в чем защита от ддоса? Вот от ддоса: https://github.com/kyprizel/testcookie-nginx-module

Re: [Анонс] Модуль nginx-http-rdns

2013-09-27 Thread Dmitry Shurupov
On 27.09.2013 17:02, Peter B. Pokryshev wrote: Я про тоже, а в чем защита от ддоса? Вот от ддоса: https://github.com/kyprizel/testcookie-nginx-module Да, этим мы тоже пользуемся :-) Нет утверждений, что nginx-http-rdns — самодостоточное решение защиты от DDoS'а. Может использоваться как одна

Re: Когда может возникнуть ситуация, что rev-instance != instance?

2013-09-27 Thread megalodon
Но после закрытия дескриптора, ядро автоматически удалит этот дескриптор из своих структур и не будет по нему отслеживать события. Ход событий в общем: воркер блокируется на epoll_wait(), по истечении тайм-аута либо по получении nevent событий, воркер просыпается и в цикле перебирает эти

Re: Когда может возникнуть ситуация, что rev-instance != instance?

2013-09-27 Thread Maxim Dounin
Hello! On Fri, Sep 27, 2013 at 11:32:20AM -0400, megalodon wrote: Но после закрытия дескриптора, ядро автоматически удалит этот дескриптор из своих структур и не будет по нему отслеживать события. Ход событий в общем: воркер блокируется на epoll_wait(), по истечении тайм-аута либо по

Re: Когда может возникнуть ситуация, что rev-instance != instance?

2013-09-27 Thread Валентин Бартенев
On Friday 27 September 2013 19:32:20 megalodon wrote: Но после закрытия дескриптора, ядро автоматически удалит этот дескриптор из своих структур и не будет по нему отслеживать события. Ход событий в общем: воркер блокируется на epoll_wait(), по истечении тайм-аута либо по получении nevent

Re: leaky bucket limit_req

2013-09-27 Thread VBart
Получается, что если в течение 1мс пришли 2 запроса, то второй будет дропнут, даже если в конфиге будет прописано 2000r/s? Только при условии, что burst был исчерпан. Posted at Nginx Forum: http://forum.nginx.org/read.php?21,10518,243214#msg-243214

Re: Когда может возникнуть ситуация, что rev-instance != instance?

2013-09-27 Thread megalodon
Пытаюсь вникнуть в мысль: Мы могли закрыть соединение до того, как добрались до обработки событий. Но где в промежутке между epoll_wait() и итерацией цикла, в которой мы обрабатываем событие то место, где мы можем потенциально закрыть сокет? events = epoll_wait(ep, event_list, (int) nevents,

Re: Когда может возникнуть ситуация, что rev-instance != instance?

2013-09-27 Thread megalodon
Все, осознал: воркер, получив очередной event_list[] и обрабатывая некоторое событие может закрыть также и другой дескриптор, связанный с обрабатываемым, причем событие с этого другого закрываемого дескриптора также могло попасть в этот event_list[], и пока мы до него доберемся, структура, которая

Re: Когда может возникнуть ситуация, что rev-instance != instance?

2013-09-27 Thread Валентин Бартенев
On Friday 27 September 2013 21:26:13 megalodon wrote: Все, осознал: воркер, получив очередной event_list[] и обрабатывая некоторое событие может закрыть также и другой дескриптор, связанный с обрабатываемым, причем событие с этого другого закрываемого дескриптора также могло попасть в этот