Re: Nginx with a ICAP-like front-end

2017-02-26 Thread Rajeev J Sebastian
Not sure if this is foolproof ... but maybe you can use the error_page fallback by responding with a special status_code. http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page location / { proxy_pass http://validator; error_page 510 = @success; } location @success { pro

Re: One NGINX server to 2 backend servers

2017-02-27 Thread Rajeev J Sebastian
I may be wrong, but where is your proxy_pass statement? On Fri, Feb 24, 2017 at 4:47 PM, p0lak wrote: > Hello everybody, > > I have installed a dedicated server for NGINX based on Ubuntu Core > > I want to define this behavior > > NGINX Server (Public IP) >>> listening on port 80 >>> redirect to

Re: Nginx with a ICAP-like front-end

2017-02-27 Thread Rajeev J Sebastian
s for filter module. This looks much simpler! The only concern is > error_page > is only for GET/HEAD not for POST? > > > > On Sun, Feb 26, 2017 at 11:48 PM, Rajeev J Sebastian < > rajeev.sebast...@gmail.com> wrote: > >> Not sure if this is foolproof ... but maybe you

Re: Nginx with a ICAP-like front-end

2017-02-27 Thread Rajeev J Sebastian
Adler, maybe you should try X-Accel-Redirect to avoid this conversion of POST to GET? On Mon, Feb 27, 2017 at 10:41 PM, Rajeev J Sebastian < rajeev.sebast...@gmail.com> wrote: > From the docs it seems that this will work for all requests EXCEPT that, > the @success fallback request