Re: How to get nginx to redirect to another path only if the root path is requested?

2018-01-27 Thread leeand00
I have other subfolders in my location paths so for instance other than just / after my host, I also have /lang/english/grammar, and /lang/spanish/gramática But I figured it out: location = / { resolver 127.0.0.1 valid=300s; proxy_pass http://192.168.1.200:80

Re: how to trigger "proxy_next_upstream invalid_header"?

2018-01-27 Thread Jeffrey 'jf' Lim
On Thu, Jan 25, 2018 at 8:22 PM, Roman Arutyunyan wrote: > Hi Jeffrey, > > On Thu, Jan 25, 2018 at 05:41:50PM +0800, Jeffrey 'jf' Lim wrote: >> This is more of a curiosity thing, I guess, than anything else, but... >> how do you trigger an "proxy_next_upstream invalid_header" when >> testing? >> >

Re: Quick successive reload makes "bind () xxxx failed, Address already in use" error

2018-01-27 Thread Francis Daly
On Wed, Jan 24, 2018 at 11:13:54AM +0800, he.hailo...@zte.com.cn wrote: Hi there, > I have a script runs two successive reloads, the first one is to remove a > listen port from the stream block, and the second one is to add the same port > back to the stream block. Why? If it is "I want to se

Re: How to get nginx to redirect to another path only if the root path is requested?

2018-01-27 Thread Francis Daly
On Fri, Jan 26, 2018 at 02:24:16PM -0500, leeand00 wrote: Hi there, > How to get nginx to redirect to another path only if the root path is > requested? I don't understand the rest of your mail; perhaps if you could show one request that you make and the response that you get, and how it is not