Re: Multiple DNS servers in resolver directive

2013-10-14 Thread Ruslan Ermilov
On Tue, Oct 15, 2013 at 02:03:10AM -0400, justin wrote: > The documentation is not clear. Can I provide two IP addresses in the > resolver config directive? > > Example: > > resolver 208.67.222.222 208.67.220.220; Please use official docs, not Wiki: http://nginx.org/r/resolver __

Multiple DNS servers in resolver directive

2013-10-14 Thread justin
The documentation is not clear. Can I provide two IP addresses in the resolver config directive? Example: resolver 208.67.222.222 208.67.220.220; Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243692,243692#msg-243692 ___ nginx mailing li

Re: "A" Grade SSL/TLS with Nginx and StartSSL

2013-10-14 Thread Piotr Sikora
Hi Julien, > I spent some time hacking on my SSL conf recently. Nothing new, but I > figured I'd share it with the group: > https://jve.linuxwall.info/blog/index.php?post/2013/10/12/A-grade-SSL/TLS-with-Nginx-and-StartSSL > > Feel free to comment here. > a few pointers for configuring state-of-th

Re: cookie and source IP logic in server block

2013-10-14 Thread Francis Daly
On Mon, Oct 14, 2013 at 06:16:14PM -0400, sfrazer wrote: Hi there, untested, but... > geo $remote_addr $blocked { > default 0; > include /etc/nginx/conf/nginx-blocked-ips.conf; > } map $blocked$cookie_whatever $reallyblocked { default 0; 1 1; } If it is blocked by geo, and has no c

cookie and source IP logic in server block

2013-10-14 Thread sfrazer
Hello, I'm trying to block certain IP ranges at my nginx server, but would like to offer the ability to bypass the block by completing a back-end CAPTCHA, which would set a cookie. Currently I set the block like so: geo $remote_addr $blocked { default 0; include /etc/nginx/conf/nginx-blocked-ips

Re: Any rough ETA on SPDY/3 & push?

2013-10-14 Thread Andrew Alexeev
On Oct 14, 2013, at 8:01 PM, codemonkey wrote: > Contemplating switching my site over to Jetty to take advantage of spdy/3 > and push, but would rather stay with nginx really... > > Is there a "rough" ETA on spdy3 in nginx? 1 month? 6 months? 2 years? > > Thanks, sorry if this is a frequent

Any rough ETA on SPDY/3 & push?

2013-10-14 Thread codemonkey
Contemplating switching my site over to Jetty to take advantage of spdy/3 and push, but would rather stay with nginx really... Is there a "rough" ETA on spdy3 in nginx? 1 month? 6 months? 2 years? Thanks, sorry if this is a frequent request... Posted at Nginx Forum: http://forum.nginx.org/re

Re: limit_req for spiders only

2013-10-14 Thread Toni Mueller
H Francis, On Mon, Oct 14, 2013 at 03:23:03PM +0100, Francis Daly wrote: > In your map, let $is_spider be empty if is not a spider ("default", > presumably), and be something else if it is a spider (possibly > $binary_remote_addr if every client should be counted individually, > or something els

Re: Quick performance deterioration when No. of clients increases

2013-10-14 Thread Toni Mueller
Hi Nick, On Sat, Oct 12, 2013 at 04:47:50PM +0300, Nikolaos Milas wrote: > We'll add virtual RAM and cores. *Any other suggestions? * did you investigate disk I/O? I found this to be the limiting factor. If you have shell access and if it is a Linux machine, you can run 'top', 'dstat' and 'htop

Re: limit_req for spiders only

2013-10-14 Thread Francis Daly
On Mon, Oct 14, 2013 at 01:59:23PM +0200, Toni Mueller wrote: Hi there, This is untested, but follows the docs at http://nginx.org/r/limit_req_zone: > I therefore constructed a map to > identify spiders, which works well, and then tried to > > limit_req_zone $binary_remote_addr zone=slow:10m ..

Re: limit_req for spiders only

2013-10-14 Thread Toni Mueller
Hello, On Mon, Oct 14, 2013 at 09:25:24AM -0400, Sylvia wrote: > Doesnt robots.txt "Crawl-Delay" directive satisfy your needs? I have it already there, but I don't know how long it takes for such a directive, or any changes to robots.txt for that matter, to take effect. Observing the logs, I'd

Re: limit_req for spiders only

2013-10-14 Thread Sylvia
Hello. Doesnt robots.txt "Crawl-Delay" directive satisfy your needs? Normal spiders should obey robots.txt, if they dont - they can be banned. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243670,243674#msg-243674 ___ nginx mailing list ng

Nginx configuration variable max size

2013-10-14 Thread Calin Don
Hi, Is there any limit on what amount of data an nginx config variable can hold? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

limit_req for spiders only

2013-10-14 Thread Toni Mueller
Hi, I would like to put a brake on spiders which are hammering a site with dynamic content generation. They should still get to see the content, but only not generate excessive load. I therefore constructed a map to identify spiders, which works well, and then tried to limit_req_zone $binary_rem