Dynamic Upstream

2017-04-28 Thread bhargava
Pupose: Need to create a local proxy to an image cdn (Beats the purpose of having a CDN, but can't help!!) Setup: I have a cdn setup with multiple endpoints say t1.mycdn.com, t2.mycdn.com and t3.mycdn.com. I have a website (foobar.com) which uses images from these cdns. Because of some requirement

Re: Dynamic upstream proxy_pass

2014-04-09 Thread kay
My bad, in one location I forgot to remove port, that is why nginx tried to resolve upstream as hostname. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249142,249145#msg-249145 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/

Re: Dynamic upstream proxy_pass

2014-04-09 Thread Makailol Charls
Hello! You need to use resolver directive in Nginx. Also you need to set DNS entries for your backend hostname. Best regards, Makailol On Wed, Apr 9, 2014 at 1:49 PM, kay wrote: > I'm trying to set upstream names by variables, but nginx recognizes > variables as hostnames, not upstream names.

Dynamic upstream proxy_pass

2014-04-09 Thread kay
I'm trying to set upstream names by variables, but nginx recognizes variables as hostnames, not upstream names. For example: map $cookie_backend $proxy_host { default 'backend1'; '1' 'backend2'; } ... ... ... upstream backend1 { server backend123:8080; server backen

Re: Dynamic upstream configuration

2013-05-13 Thread mamoos1
Hi! Unfortunately, I didn't find a very good solution for this, but, in nginx 1.4+ the issue with SSL backend keepalive was fixed - so if you have a list of all your possible servers, your configuration file will look horrible, but you can achieve this by having all the backend servers defined as

Re: Dynamic upstream configuration

2013-05-13 Thread krukow
mamoos1 Wrote: --- [snip...] > I know that I can configure keep-alive with upstream - but that > requires me to know upfront which servers will be used (which I don't, > since I dynamically fetch content according to headers). > Is there a way to

Re: Dynamic upstream configuration

2013-04-30 Thread António P . P . Almeida
No it does not unless you don't configure a shared SSL session cache. http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_cache I'm assuming that the upstream servers are Nginx also. If not adapt to the appropriate server session cache setup. appa On Tue, Apr 30, 2013 at 4:

Re: Dynamic upstream configuration

2013-04-30 Thread mamoos1
A shame that no one has a solution for this... It's a really big performance hit whenever backend servers are https and nginx simply renegotiates SSL for each request. Is there any plan to support this? Some sort of backend connection pooling with SSL? Posted at Nginx Forum: http://forum.nginx.o

Dynamic upstream configuration

2013-04-17 Thread mamoos1
Hi, I have an nginx configured as a reverse proxy using proxy_pass. This is a dynamic reverse proxy, it fetches content for users in accordance to the HOST header in the requests. The problem I encountered is that the backends are normally SSL, and every request that goes has to re-handshake (sinc