Thank you, now it seems to work! Verstuurd vanaf mijn iPhone > Op 17 nov. 2017 om 15:02 heeft Francis Daly <francis@daoine.org> het volgende geschreven: > > On Fri, Nov 17, 2017 at 02:16:41PM +0100, Ruben wrote: > > Hi there, > >> instance-001 log when making the request: >> >> "GET /cdn/test/test.jpg HTTP/1.0" 301 185 "-" "by rsdrsd - Nginx Mailing List - English
The logs of instance-001 show that a GET request is made at instance-001 and that it is a 301 redirect. instance-001 log when making the request: "GET /cdn/test/test.jpg HTTP/1.0" 301 185 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" 2017-11-17 8:53 GMT+01:00 Francis Daly <francis@daoiby rsdrsd - Nginx Mailing List - English
In my browser bar I see the address beginning with instance-001. While I expect not to have a redirect and just see http://example.com/etc... Is that what you mean? Verstuurd vanaf mijn iPhone > Op 16 nov. 2017 om 23:56 heeft Francis Daly <francis@daoine.org> het volgende geschreven: > > On Thu, Nov 16, 2017 at 09:59:49PM +0100, Ruben wrote: > > Hi there, > >>by rsdrsd - Nginx Mailing List - English
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 { internal; proxy_pass http://auth; proxy_pass_request_body off;by rsdrsd - Nginx Mailing List - English
Just start with the default ones. Verstuurd vanaf mijn iPhone > Op 16 okt. 2017 om 19:32 heeft agriz <nginx-forum@forum.nginx.org> 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 > > _________________________________________by rsdrsd - Nginx Mailing List - English
Maybe lower fpm specs and raise nginx spec? Verstuurd vanaf mijn iPhone > Op 16 okt. 2017 om 18:59 heeft agriz <nginx-forum@forum.nginx.org> het volgende geschreven: > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 22093 nginx 20 0 393060 11848 3828 S 31.9 0.0 10:17.70 php-fpm: > pool www > 1495 mysql 20 0 4793852 318444by rsdrsd - Nginx Mailing List - English
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 server fails. Do I get an error for that connection or does it try chat-3 server? I want it not to gby rsdrsd - Nginx Mailing List - English
Well I'd expect that when using "server chat" as per the docs: "A domain name that resolves to several IP addresses defines multiple servers at once." the hash wouldn't be consistent on choosing the name, but on the server list, because it defines multiple servers. 2017-10-09 12:23 GMT+02:00 Roman Arutyunyan <arut@nginx.com>: > > Hi Ruben, > > On Mon, Oct 0by rsdrsd - Nginx Mailing List - English
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's. Such that when I do: dig test 10.0.0.8 10.0.0.9 10.0.0.10 and a few moments later dig test 10.0.0.10 10.0.0.8 10.0.0.9 Is it then still consistent on the ip's or is the consistency just on the name "test" in this case? From the docs I reaby rsdrsd - Nginx Mailing List - English
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 10.0.0.10; server 10.0.0.9; server 10.0.0.8; } or (ip's in different order) upstream chat { haby rsdrsd - Nginx Mailing List - English
I want to let people publish on one url, for example: rtmp://domain:1935/app/stream_name In this url the stream_name could be a username or whatsoever. The stream_name is dynamic. Now I want to load balance this as following. I have a load balancer which works like: ``` stream { upstream publish_rtmp_backend { hash stream_name; <----------------------- Can't find a vby rsdrsd - How to...
I also tried something like this, but this also doesn't work: location ~ ^/hls/(long|short)/([0-9a-zA-Z]+)\.m3u8 { alias /tmp/hls/$1/$2.m3u8; auth_request /hls/auth-play/$1/$2; } location ~ ^/hls/auth-play/(long|short)/([0-9a-zA-Z]+) { proxy_pass http://127.0.0.1:8080/on_play.php?app=$1&room=$2; proxy_pass_request_body off; proxy_set_header Content-Length "";by rsdrsd - How to...
I want to protext a live HLS stream. I want to use the auth_request module. I want to check if a request is valid by passing a key. So something like: http://domain.com/hls/stream.m3u8?key=xxxxxxx I have the following setup in nginx.conf: location /hls { alias /tmp/hls; auth_request /hls/auth; } location /hls/auth { proxy_pass http://localhost.com:8080/on_play.php; proxy_pass_rby rsdrsd - How to...