Hi guys, I would like to pick up your brains. I need to build a robust and reliable load balancing cluster on nginx. The trouble with that is I'm going to spread the load horizontally what means I will have multiple "same level" nginx boxes with a single VIP on one of them. I would like to pass the traffic to all the nodes in that cluster as well to the "director" so theby thorwald - How to...
The trouble is I want to take the load from the backend and dump it onto nginx. The solution you're offering is good only for phpBB. How do you want to implement that for a server having 10k multiple websites, some having attacks against post.php, wp-login.php, wp-comments-post.php etc ? My idea was to create a simple website managed by nginx which will be displayed if $request_uri matchesby thorwald - How to...
Hi guys, I'm wondering if there is any way to configure nginx to be some sort of token server for some urls. Let me give you an example. There are number of requests to the url like post.php. Some of them are actually spam requests and abuses. Is there any way to do something like when the user accesses post.php nginx displays a "token site" which basically says "Please click hby thorwald - How to...
Hi, I'm wondering if there is a way to rate limit certain location but based on 2 rate limit zones. I use nginx as a reverse proxy to apache. Got some rate limiting rules setup to prevent apache from maxing the number of connections out. The trouble is I want to rate limit location based on $host and $request_uri at the same time. That in effect will put one limit for the server globally andby thorwald - How to...
I'm not sure but I think this is the key to the final answer: proxy_cache_key "$scheme://$host$request_uri"; with this setting everything seems to be working as I expected.by thorwald - How to...
Hi, I have found an issue also. Don't know where does it come from but it is related with my "caching" feature. I run the server on another box with different IP and forwarded all to the "apache". When cache is enabled and I go to domain2.com I see that website for domain2.com. When I go to domain1.com I see website for domain2.com. When I clear the cache and go to domaiby thorwald - How to...
Hi tested in both "catch-all" and with vhosts and it didn't work :(. Still the same website appears for all vhosts :(. Regards.by thorwald - How to...
Shall I keep the vhost configs too or are we talking about the catch-all configuration now ? Thank you for your help. Regards.by thorwald - How to...
Hi, I have got a problem with nginx configuration to work in such way: I want to put apache to run on 127.0.0.1 port 80 and nginx to run on public IP on port 80 as well which will be basically a caching proxy to the apache so if someone will ask for the domain which apache is serving nginx will take it over and either read it from its cache or ask for it. Everything works like a charm whenby thorwald - How to...