auth_basic within location block doesn't work when return is specified?

2016-11-06 Thread Scott McGillivray
i thought this would work but for some reason it doesn't. location /auth { auth_basic_user_file /etc/nginx/.htpasswd; auth_basic "Secret"; return 200 'hello'; } When i specify the return, 200 or 301, it just skips the auth_basic and processes the return statement. If i comm

Re: How to forward the request to a remote proxy

2016-11-06 Thread Francis Daly
On Sun, Nov 06, 2016 at 06:51:31AM +, Leachovsky, Anna wrote: Hi there, > I have nginx reverse proxy on Windows inside internal network. To be able to > access the redirected URL I need to configure proxy (for example: proxy:8080) nginx does not do that. So you would need something else a