Hello Maxim, thank you for your help! The hint that lead me to the solution was about Gzipped output from gunicorn. In the Django settings.py I activated the GZip Middleware. After removing this, the SSI includes work correctly. Best regards, Jonasby j0nes2k - Nginx Mailing List - English
Hello, I have nginx in front of an Apache server and a gunicorn server for different parts of my website. I am using the SSI module in nginx to display a snippet in every page. The websites include a snippet in this form: <!--# include virtual="/mysnippet.txt" --> For static pages served by nginx everything is working fine, the same goes for the Apache-generated pages - theby j0nes2k - Nginx Mailing List - English
Hello, I have not tried this yet, however I have found another post with a possible solution: http://serverfault.com/questions/177461/how-to-rate-limit-in-nginx-but-including-excluding-certain-ip-addresses Please let us know if you succeeded in whitelisting IPs, and I will also report back if I find a working solution. Best regards, Jonas Kaufmannby j0nes2k - Nginx Mailing List - English
Hello Igor and Francis, amazing, thank you for your help! Everything works right now! Best regards Jonas Kaufmannby j0nes2k - Nginx Mailing List - English
Hello Francis, okay, I see. So nginx seems to (randomly?) choose one of the location blocks - in my case it was the lower one using the proxy_pass directive. However I have several scripts running under /cgi-bin that need different limit_req settings - there are scripts that need to have a strong limit and others do not need a limit at all. I have tried something like location /cgi-bin/by j0nes2k - Nginx Mailing List - English
Hello, I have tried to rate limit a resource using HttpLimitReq that is passed on to a backend Apache server. Now when I try to limit this resource, nothing is blocked and all requests go through. When using static resources, the limit_req works as expected. Here is my config: location /cgi-bin/test\.pl { limit_req zone=one nodelay burst=3; } location /cgi-bin/ { proxy_passby j0nes2k - Nginx Mailing List - English
Well Maxim... obviously you were right - sorry about this, could have checked this earlier. Now everything is working as I expected. Thanks a lot for your help! Jonas Kaufmannby j0nes2k - Nginx Mailing List - English
Hello, I am trying to understand how the HttpLimitReq Module works. I have read that it uses the Leaky Bucket Algorithm, however I am not sure how to understand the behaviour I am observing. Here is my test setup: limit_req_zone $binary_remote_addr zone=one:10m rate=1r/m; location /test { limit_req zone=one nodelay; } Every resource under /test should be accessible only once peby j0nes2k - Nginx Mailing List - English
Hello, I am trying to use the HTTPLimitRequests Module to prevent excessive usage of resources on our server. However we also have some spikes which seem to originate from search bots or other allowed usage. We want to keep these requests from known IP adresses untouched and limit all other requests. Is there a way to whitelist IPs using this module? Thank you for your answer! Best rby j0nes2k - Nginx Mailing List - English
Hello, I have set up a nginx instance for static content that forwards dynamic content to a backend Apache server via the upstream module. I use munin to monitor both the nginx and Apache requests per second. Now I am wondering how to interpret the results and how the nginx-status works. If I have 10000 requests per second on nginx-status and 2000 requests per second on Apache server-statusby j0nes2k - Nginx Mailing List - English