Re: Nginx dynamic proxy_pass keeps redirecting to wrong domain

2017-11-17 Thread Ruben D
Thank you, now it seems to work! Verstuurd vanaf mijn iPhone > Op 17 nov. 2017 om 15:02 heeft Francis Daly het volgende > geschreven: > > On Fri, Nov 17, 2017 at 02:16:41PM +0100, Ruben wrote: > > Hi there, > >> instance-001 log when making the request: >>

Re: Nginx dynamic proxy_pass keeps redirecting to wrong domain

2017-11-17 Thread Ruben
ecko) Chrome/62.0.3202.94 Safari/537.36" 2017-11-17 8:53 GMT+01:00 Francis Daly : > On Fri, Nov 17, 2017 at 04:48:04AM +0100, Ruben D wrote: > > Hi there, > > > In my browser bar I see the address beginning with instance-001. While I > expect not to have a redirect an

Re: Nginx dynamic proxy_pass keeps redirecting to wrong domain

2017-11-16 Thread Ruben D
Nov 16, 2017 at 09:59:49PM +0100, Ruben wrote: > > Hi there, > >>location / { >> proxy_pass http://$instance; >>} > >> The problem is, when I go to http://example.com/cdn/test/test.jpg in the >> browser, it redirects me to http:

Nginx dynamic proxy_pass keeps redirecting to wrong domain

2017-11-16 Thread Ruben
I am using the following config: http { server { listen 80; location / { resolver 127.0.0.11; auth_request /auth; auth_request_set $instance $upstream_http_x_instance; proxy_pass http://$instance; } location = /auth {

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

2017-10-16 Thread Ruben D
Just start with the default ones. Verstuurd vanaf mijn iPhone > Op 16 okt. 2017 om 19:32 heeft agriz het > volgende geschreven: > > Sir, > > Can you give me a rough values? > I will play with them. > > Posted at Nginx Forum: > https://forum.nginx.org/read.php?2,276892,276896#msg-276896 > >

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

2017-10-16 Thread Ruben D
Maybe lower fpm specs and raise nginx spec? Verstuurd vanaf mijn iPhone > Op 16 okt. 2017 om 18:59 heeft agriz het > volgende geschreven: > > PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ COMMAND > 22093 nginx 20 0 393060 11848 3828 S 31.9 0.0 10:17.70 php-fpm:

max_fails=0 for server directive

2017-10-15 Thread Ruben
When setting max_fails=0 for all server directives used in upstream module. So for example: upstream chat-servers { hash $arg_chatName; server chat-1 max_fails=0; server chat-2 max_fails=0; server chat-3 max_fails=0; } Assume a certain ?chatName=xxx is directed to chat-2 server, and this

Re: Selection of server in upstream directive using hash

2017-10-11 Thread Ruben
s. 2017-10-09 12:23 GMT+02:00 Roman Arutyunyan : > > Hi Ruben, > > On Mon, Oct 09, 2017 at 11:51:54AM +0200, Ruben wrote: > > First of all thanks for your reply. But what happens if I have for example > > a hostname: test, which resolves to a randomized list of multiple ip

Re: Selection of server in upstream directive using hash

2017-10-09 Thread Ruben
his, because docker constantly returns a randomized fixed list of ip's (for dns load balancing). But I always want to route a user, targetting for some url, to the same container. 2017-10-09 11:25 GMT+02:00 Roman Arutyunyan : > Hi Ruben, > > On Mon, Oct 09, 2017 at 09:33:5

Selection of server in upstream directive using hash

2017-10-09 Thread Ruben
I was wondering what the selection algorithm is for choosing a server in the upstream directive using hash. Is the selection based on the ip of the server or is it based on the position of the list. So if I have for example the following configuration: upstream test { hash $arg_test; server 1

Re: nginx config: different projects in different directories

2013-10-06 Thread Ruben LZ Tan
Maybe try setting location /hello and /world would help? Thanks, Ruben Tan On Monday, October 7, 2013 at 1:27 PM, Jabba Laci wrote: > Hi, > > I'm new to the list. I started to learn the Python web framework Flask > and I would like to try it in production environment too. I m