nginx as reverse proxy to several backends

2017-02-21 Thread Filip Francis
Hi all, I am trying to set-up a reverse proxy with nginx so that based on the server_name it goes to the correct backend. I have been looking in to examples but no luck to get it actually working. So this is want I want to do when user type .yyy.be as normal http it redirects to https a

Image Maps

2017-02-21 Thread Captain Wiggum
Hi All, I have searched the archives in hopes of answering this myself. But no luck. My html was recently migrated from apache to nginx. It worked fine on apache. The html uses image maps, such as: html v1 style: or newer css style: Neither seem to work with my nginx-1.10.1 on Fedora (really A

how can I use external URI with the auth_request module

2017-02-21 Thread Litichevskij Vova
Hello! up vote <> down vote <>favorite I'm trying to use nginx's ngx_http_auth_request_module in such way: server { location / { auth_request http://external.url;

Re: input required on proxy_next_upstream

2017-02-21 Thread Francis Daly
On Tue, Feb 21, 2017 at 04:45:09AM -0500, kaustubh wrote: Hi there, > Thanks Francis! I was able to test that above works. Good stuff -- at least we can see that things are fundamentally correct. > But problem is when we have proxy buffering off and when we try to send > large file say 1gb, it

Re: Proxying and static files

2017-02-21 Thread Alan Orth
Hi, The try_files directive is great for this[0]. But like Francis pointed out, you need to have a pattern that can be matched for static files, and then nginx can look for the files on disk (relative to the root) before proxying the request back to the dynamic application. Regards, [0] http://n

Re: input required on proxy_next_upstream

2017-02-21 Thread kaustubh
Thanks Francis! I was able to test that above works. But problem is when we have proxy buffering off and when we try to send large file say 1gb, it fails with 502 without trying next instance. proxy_request_buffering off; proxy_http_version 1.1; Docs say so, http://nginx.org/en/docs/http/ngx_