Log to a file inside a location block?

2016-04-23 Thread Thomas Nyberg
Hello, Is there any way to log to a file which location block is taken? I've had times when I've messed up regular expressions in location blocks and it was difficult to track down the issue. Is there any option equivalent to this pseudocode? location ~ ^/prepend(a|b) { logtofile "/prepend(a|

Re: setting up proxy peers like HAproxy?

2016-04-23 Thread Alexander Kunz
Hello Florin, i'm not sure how HAproxy works, but this sounds like sticky sessions. http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky Kind regards Alexander Am 23.04.2016 2:23 vorm. schrieb "Florin Andrei" : > With HAproxy, if you use multiple proxies you can synchronize their

Re: 502 Bad Gateway errors from Nginx when trying to access Tomcat

2016-04-23 Thread Francis Daly
On Fri, Apr 22, 2016 at 02:29:07AM -0400, gischethans wrote: Hi there, > I have JIRA and Nginx running on the same server with Nginx installed to > serve as a reverse proxy. For this to work, you need your users to connect to nginx, and you need nginx to connect to jira. > Browser displays Conn