Nginx 14.1 very slow as a reverse proxy

2018-11-19 Thread Ricky Gutierrez
Hi list , I need a little help, I have a reverse proxy in front of an ASP.net application, the nginx server has it with 4gb ram, disk sas at 15K and 2 core in centos 7, I've noticed that the proxy acts very slow, checking the log I see a lot 2018/11/19 14:10:04 [error] 16379#16379: *51 upstream ti

Re: Strange behaviour of %27 encoding in rewrite

2018-11-19 Thread aquilinux
Thanks Maxim, using the return directive worked flawlessly. Regards, On Thu, Nov 15, 2018 at 4:55 PM Maxim Dounin wrote: > Hello! > > On Wed, Nov 14, 2018 at 03:54:20PM +0100, aquilinux wrote: > > > Hi all, > > i'm seeing a strange behaviour in nginx rewrite involving encoded urls > for > > *%2

Re: njs and subrequests

2018-11-19 Thread Dmitry Volyntsev
Hi Antoine, >Is there any plan to have subrequest from ngx_http_js_module support > external URLs ? Nothing prevents you from making subrequests to external URLs. https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass https://nginx.org/en/docs/http/ngx_http_core_module.html#reso

Re: Using correct variable for proxy_pass

2018-11-19 Thread Maxim Dounin
Hello! On Mon, Nov 19, 2018 at 09:47:32AM +, Rob Fulton wrote: > Hi, > > I'm trying to work out the best way to setup the proxy_pass url and > which variables to use. Initially we were using proxy_pass to proxy to a > single https URL, we used a rewrite to change https://hostname/ to > ht

Using correct variable for proxy_pass

2018-11-19 Thread Rob Fulton
Hi, I'm trying to work out the best way to setup the proxy_pass url and which variables to use. Initially we were using proxy_pass to proxy to a single https URL, we used a rewrite to change https://hostname/ to https://hostname/index.html. We've recently discovered issues due to the single