Re: IPv6 IPv4 backend with proxy_bind

2013-11-18 Thread Maxim Dounin
Hello! On Mon, Nov 18, 2013 at 10:24:43PM +1030, SplitIce wrote: Hi, We use proxy_bind to ensure traffic always goes out via the same address as the incoming request i.e the bound address where a server has many addresses. This is a hard restriction in our use case. We are looking to

Re: [PATCH] ssl support for uwsgi upstream

2013-11-18 Thread Maxim Dounin
Hello! On Sun, Nov 17, 2013 at 08:50:14AM +0100, Roberto De Ioris wrote: Hi all, attached you will find a patch adding two new options to the uwsgi upstream module: uwsgi_ssl flag (default off) uwsgi_ssl_session_reuse flag uwsgi over ssl has been officially added today to the uWSGI

Re: [PATCH] ssl support for uwsgi upstream

2013-11-18 Thread Roberto De Ioris
Hello! On Sun, Nov 17, 2013 at 08:50:14AM +0100, Roberto De Ioris wrote: Hi all, attached you will find a patch adding two new options to the uwsgi upstream module: uwsgi_ssl flag (default off) uwsgi_ssl_session_reuse flag uwsgi over ssl has been officially added today to the uWSGI

Re: pls. help for adding another parameter to ngx_upstream_server

2013-11-18 Thread Maxim Dounin
Hello! On Sat, Nov 16, 2013 at 06:31:42PM +0900, moto kawasaki wrote: [...] mdounin Now, I am struggling to add setfib=N parameter to server token in mdounin upstream clause, and so far failed. mdounin mdounin Could you please point out use cases for such a parameter? mdounin

Re: [PATCH] ssl support for uwsgi upstream

2013-11-18 Thread Roberto De Ioris
Hello! On Mon, Nov 18, 2013 at 02:31:13PM +0100, Roberto De Ioris wrote: Hello! On Sun, Nov 17, 2013 at 08:50:14AM +0100, Roberto De Ioris wrote: Hi all, attached you will find a patch adding two new options to the uwsgi upstream module: uwsgi_ssl flag (default off)

[nginx] Upstream: cache revalidation with conditional requests.

2013-11-18 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/43ccaf8e8728 branches: changeset: 5441:43ccaf8e8728 user: Maxim Dounin mdou...@mdounin.ru date: Mon Nov 18 20:48:22 2013 +0400 description: Upstream: cache revalidation with conditional requests. The following new directives are introduced:

Re: Добавить переменую $cache status

2013-11-18 Thread Maxim Dounin
Hello! On Fri, Nov 15, 2013 at 01:46:24PM -0500, S.A.N wrote: Отличия ETag от Last-Modified, в формате значений, в ETag произвольный формат и многие разработчики это используют для передачи хеш состояний ответа, некоторые даже используют значения ETag для передачи серелизированой строки в

Re: Добавить переменую $cache status

2013-11-18 Thread S.A.N
Если в нашей дискуссии есть практический смысл (реализация Etag в ближайших версия). Я могу много рассказать про невозможность использовать Last-Modified для ревалидации. Реальный пример из жизни, у нас есть страница товара, ниже выводим комментарии пользователей, хедер страницы Last-Modified –

Re: Добавить переменую $cache status

2013-11-18 Thread Gena Makhomed
On 18.11.2013 21:46, S.A.N wrote: Я могу много рассказать про невозможность использовать Last-Modified дляревалидации. HTTP/1.0 clients and caches will ignore entity tags. - цитата из http://tools.ietf.org/html/rfc2616#section-13.3.4 и для ревалидации они будут использовать именно что

Re: Добавить переменую $cache status

2013-11-18 Thread S.A.N
Проблем с HTTP/1.0 не будет в принципе, бекенд не работает на прямую с клиентом по HTTP/1.0, бекенд работает с Nginx, который в свою очередь должен передать HTTP_IF_NONE_MATCH взятым из файла кеша Nginx, бекенд проведет ревалидацию и ответит 304 или 200 с контентом страницы, клиент получит ответ

Re: Добавить переменую $cache status

2013-11-18 Thread Maxim Dounin
Hello! On Mon, Nov 18, 2013 at 02:46:31PM -0500, S.A.N wrote: Если в нашей дискуссии есть практический смысл (реализация Etag в ближайших версия). Я могу много рассказать про невозможность использовать Last-Modified для ревалидации. Реальный пример из жизни, у нас есть страница товара,

Re: Добавить переменую $cache status

2013-11-18 Thread Дмитрий Андреев
18.11.2013, 23:46, S.A.N nginx-fo...@nginx.us: Реальный пример из жизни, у нас есть страница товара, ниже выводим комментарии пользователей, хедер страницы Last-Modified – это дата создания/редактирования товара, это необходимо для поисковиков RSS клиентов Для поисковиков можно генерировать

Pass parameters though auth_request directive?

2013-11-18 Thread engenex
Hi, I am try to implement a simple auth system using nginx, nginx-auth-request-module and php-fpm. I want to do the following: User requests http://myserver.com/content/file1.zip?key=12345 location /content { auth_request /auth_http.php; # do some logic in auth_http.php then # depending

Re: Pass parameters though auth_request directive?

2013-11-18 Thread engenex
Hi Maxim! Your solution worked. Thanks for the fast response. I was able to access the original params through the $_SERVER['REQUEST_URI'] php array as you said. I didn't even have to change my conf. God bless you. I spent the better part of the last 24 hours trying to figure this one out. I

limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Nam
Hello, I would like to see if it's possible to get limit_conn and limit_req working with the rewrite modules if statement. I have seen some discussion about this in the mailing list already saying to use stuff like throwing a 410 code and having that 410 code handled by a @named location that

rewrite and proxy_pass at the same time in nginx

2013-11-18 Thread marianopeck
HI guys. I am trying to make something to work in nginx but I have no luck. I posted in StackOverflow, and no answer. I wish any of you can help me. I paste the SO question here as well: I am using nginx and I need a proxy to redirect some service. From my application, I should be able to do a

Re: limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Nam
To elaborate a bit more, in a single location I may end up with something like this... set $Whitelisted No; if ($GeoList1 = allow) { set $Whitelisted Yes; } if ($GeoList5 = allow) { set $Whitelisted Yes; } if ($http_user_agent ~ (googlebot|bingbot)) { set $Whitelisted Yes; } if

Re: nginx with cavium SSL

2013-11-18 Thread jimhowell
Greetings Jacob, We are looking at a similar situation -- did you learn anything to update this post? Thank you. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,233535,244784#msg-244784 ___ nginx mailing list nginx@nginx.org

Re: limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Jonathan Matthews
On 18 November 2013 20:57, Nam nginx-fo...@nginx.us wrote: To elaborate a bit more, in a single location I may end up with something like this... set $Whitelisted No; if ($GeoList1 = allow) { set $Whitelisted Yes; } if ($GeoList5 = allow) { set $Whitelisted Yes; } if

Re: rewrite and proxy_pass at the same time in nginx

2013-11-18 Thread Francis Daly
On Mon, Nov 18, 2013 at 03:55:08PM -0500, marianopeck wrote: Hi there, snippage server { location ~ ^/someService(/.*)$ { proxy_pass https://$1; } } What does the error log say? What does the error log say when you change proxy_pass to have 2 slashes and not 3? f --

Re: limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Maxim Dounin
Hello! On Tue, Nov 19, 2013 at 12:35:19AM +, Francis Daly wrote: On Mon, Nov 18, 2013 at 02:49:27PM -0500, Nam wrote: Hi there, I would like to see if it's possible to get limit_conn and limit_req working with the rewrite modules if statement. Not according to the current

alert: ... pread() read only

2013-11-18 Thread Nikolaos Milas
Hello, We are running a Joomla website loading a google map in an iframe (under NGINX) in the main (home) web page. This is the page mostly visited as it contains almost real-time data to be viewed by clients. The system info: Linux myserver.example.com 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed