Thanks. This is exactly what I'have figured out and forgot to post here. Bottom line is that my approach, due to lack of knowledge, was wrong. static=false is a parameter which is not taken into account when NginX is making regex for 'location' block. 'Query string' is something I had to focus on. It is nicely described here: http://nginx.org/en/docs/http/request_processing.html#simple_php_site_by piotr.pawlowski - Nginx Mailing List - English
OK, so do you know how to achieve my goal?by piotr.pawlowski - Nginx Mailing List - English
Gents, I am trying to setup location block which has wildcard 'inside' regex. Here is what I think should work: location ~ /documents/(.*)static=false$ { proxy_pass http://upstream; } location /documents { try_files $uri /test.html; } location = /test.html { expires 30s; } Unby piotr.pawlowski - Nginx Mailing List - English
OK, I've figured out how to do it. I assume, that my upstream pool is called 'webservers' which consist two servers with IP 192.168.1.2 and 192.168.1.3. Now in configuration file for specific website you can use following configuration: location / { proxy_pass_header $server; proxy_set_header Host $http_host; proxy_redirect off;by piotr.pawlowski - How to...
Dear all, I am planning to configure laod balancing on NginX by using upstream module. I will have two backend server and one front-end (which will accept all requests and pass them to backend servers). Despite posibility to handle more requests to website, I would like to also use one of the backend servers for some testing purposes. Now I am wondering if there is possibility to configure Nby piotr.pawlowski - How to...
And everything is clear now, thank you Maxim !by piotr.pawlowski - Nginx Mailing List - English
Dear all, I am not quite sure how to understand stub_status module output. I have three servers, on which I have this module turned on. Maybe servers infrastructure is the key here, so let me explain it: * ProxyServer - server with NginX, where all requests are coming and proxied to other two servers * WebServer - server with NginX and PHP, where 90% of our application is running * DbServerby piotr.pawlowski - Nginx Mailing List - English