Is there a way to block a host if it makes too many requests per second? Thanks! _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby testbot - Nginx Mailing List - English
-----Original Message----- From: Boris Dolgov Sent: Wednesday, April 07, 2010 11:07 AM To: nginx@nginx.org Subject: Re: basic auth not working 100% On Wed, Apr 7, 2010 at 7:33 PM, AMP Admin <admin@ampprod.com> wrote: > On one of my boxes I noticed that if the password is only half the string it > will authenticate. > Should be: > Username: tester > Pass: ThisPassword1234#&aby testbot - Nginx Mailing List - English
On one of my boxes I noticed that if the password is only half the string it will authenticate. Should be: Username: tester Pass: ThisPassword1234#&^ But the following authenticates: Username: tester Pass: ThisPassword Can anyone confirm this behavior? _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby testbot - Nginx Mailing List - English
location / { root /home/path/public_html/store; # absolute path doc root index index.php index.html index.htm; # this serves static files that exist without running other rewrite tests if (-f $request_filename) { expires 30d; break; } # this sends all nby testbot - Nginx Mailing List - English
-----Original Message----- From: Ryan Malayter Sent: Tuesday, February 02, 2010 8:43 AM To: nginx@nginx.org Subject: Re: proxy_cache ramdisk On Mon, Feb 1, 2010 at 11:35 AM, Igor Sysoev <igor@sysoev.ru> wrote: >> All pages on this site have a login option so I guess caching our site isn't >> a good idea. > > Yes, even if you cache them properly in nginx, they will have pby testbot - Nginx Mailing List - English
I'm guessing you can't do 'allow hostname' since I get an error when I try it so is there any way to get the ip address from a host name and store it in a variable then do 'allow variable'? If not is it possible to allow a dynamic dns somehow? We need this for a few roaming clients who's ip addresses change. Thanks! _______________________________________________ nginx mailing list ngiby testbot - Nginx Mailing List - English
-----Original Message----- From: Igor Sysoev Sent: Monday, February 01, 2010 11:06 AM To: nginx@nginx.org Subject: Re: proxy_cache ramdisk On Mon, Feb 01, 2010 at 10:50:37AM -0600, AMP Admin wrote: > -----Original Message----- > From: Igor Sysoev > Sent: Monday, February 01, 2010 10:38 AM > To: nginx@nginx.org > Subject: Re: proxy_cache ramdisk > > On Sun, Jan 31, 2010by testbot - Nginx Mailing List - English
-----Original Message----- From: Igor Sysoev Sent: Monday, February 01, 2010 10:38 AM To: nginx@nginx.org Subject: Re: proxy_cache ramdisk On Sun, Jan 31, 2010 at 04:26:05PM -0600, AMP Admin wrote: > I'm able to cache php pages with the following but I can't seem to cache > static images with proxy_cache. > > > This works: > > location ~ \.php$ { > >by testbot - Nginx Mailing List - English
Oh and I added the following to the nginx startup script so it will always create the ram drives if they don't already exsist when nginx starts. Not sure if that helps anyone else or not. Obviously change the path and name to your config. This is a centos box. start() { if /bin/mount | grep temp_cache ; then echo "is mounted" else echo "Mounting nginx Temby testbot - Nginx Mailing List - English
-----Original Message----- From: Ryan Malayter Sent: Monday, February 01, 2010 8:14 AM To: nginx@nginx.org Subject: Re: proxy_cache ramdisk On Sun, Jan 31, 2010 at 9:12 PM, quan nexthop <quan.nexthop@gmail.com> wrote: > Could you please share us your configuration ? The basics of tmpfs are here: http://en.wikipedia.org/wiki/Tmpfs Here's my config with most comments and white-space trby testbot - Nginx Mailing List - English
does temp and cache use the same amount of space?by testbot - Nginx Mailing List - English
I'm able to cache php pages with the following but I can't seem to cache static images with proxy_cache. This works: location ~ \.php$ { fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; fastcgi_cache cachephpby testbot - Nginx Mailing List - English
Is there any examples of a proxy_cache config? I see the wiki but I would like to see some working example that people are using successfully. Right now I'm just using php-fpm, nginx, and xCache. Not sure how to get the most out of and utilize proxy_cahce. _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby testbot - Nginx Mailing List - English
So I was thinking of creating a ramdisk and then pointing proxy_cache at the ramdisk. do you think that will be a good combo? If so, to the people that use proxy_cache, how much space is it using on average so I can make it the right size? _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby testbot - Nginx Mailing List - English
Thank you! I will do some research now and maybe get even better performance! -----Original Message----- From: Jérôme Loyet Sent: Thursday, January 28, 2010 4:15 PM To: nginx@nginx.org Subject: Re: nCache, Varnish Performance 2010/1/28 AMP Admin <admin@ampprod.com>: > Is xCache something different all together? I know it's for caching php but > is it recommended to use nCacheby testbot - Nginx Mailing List - English
Is xCache something different all together? I know it's for caching php but is it recommended to use nCache, proxy_cache, or Varnish if you're already using xCahce? -----Original Message----- From: Piotr Sikora Sent: Thursday, January 28, 2010 4:01 PM To: nginx@nginx.org Subject: Re: nCache, Varnish Performance Hi, > Is nCache and Varnish far better than proxy_cache? >From http://codby testbot - Nginx Mailing List - English
Wow! This is awesome! I'll start working with this and see what I can come up with. Btw, I'm running Nginx 0.7.64 -----Original Message----- From: Steve Sent: Tuesday, December 29, 2009 7:53 PM To: nginx@nginx.org Subject: Re: i've been trying to convert this .htaccess for a week now -------- Original-Nachricht -------- > Datum: Mon, 28 Dec 2009 20:24:14 -0600 > Von: "AMP Admin&by testbot - Nginx Mailing List - English
THIS IS SO FRUSTRATING! Is there away to serve all of the rewrite stuff or just the .htaccess files through apache until we get this figured out? I really hate to have to install apache just to get the .htaccess/rewrites to work but maybe that's the easiest solution for now. Regards, -Team AMP http://www.ampprod.com -----Original Message----- From: AMP Admin Sent: Tuesday, December 29,by testbot - Nginx Mailing List - English
Thanks. Regards, -Team AMP http://www.ampprod.com -----Original Message----- From: merlin corey Sent: Tuesday, December 29, 2009 3:30 PM To: nginx@nginx.org Subject: Re: i've been trying to convert this .htaccess for a week now On Tue, Dec 29, 2009 at 1:28 PM, merlin corey <merlincorey@dc949.org> wrote: > >> RewriteCond %{REQUEST_FILENAME} -f >> >> RewriteCondby testbot - Nginx Mailing List - English
That is the original htaccess file. I didn't put my changes. Also, it's been on and off for a week so maybe I over exaggerated a bit. Regards, -Team AMP http://www.ampprod.com ====== CONFIDENTIALITY NOTICE ====== NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If thby testbot - Nginx Mailing List - English
No luck. Ps- I think that is similar to the automatic converter script I tried. Regards, -Team AMP http://www.ampprod.com -----Original Message----- From: Luka Horvatic Sent: Tuesday, December 29, 2009 7:59 AM To: nginx@nginx.org Subject: Re: i've been trying to convert this .htaccess for a week now Try this one: rewrite ^/articles/{0,1}$ /; rewrite ^/articles/entry/([^/.]+)/{0,1}$by testbot - Nginx Mailing List - English
I hate to ask but this one is just too big and complicated for me to convert. Any help would be good. Thanks! RewriteRule ^articles/{0,1}$ articles.php RewriteRule ^articles/entry/([^/.]+)/{0,1}$ articles.php?action=viewarticle&articleUri=$1 RewriteRule ^articles/entry/{0,1}$ articles.php?action=viewarticle&articleUri=$1 RewriteRule ^articles/category/([^/.]+)/{0,1}$ articlesby testbot - Nginx Mailing List - English
I tried that converter. doesn't seem to work. This one is a bit complicated to me. If it was strait forward I wouldn't have asked the list. For example, I don't even know what the third line here means: RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} -d RewriteRule .+ - RewriteRule ^(+)$ profile.php?ID=$1 All of the rewrites in that attached file are slightly over my hby testbot - Nginx Mailing List - English
Where is everyone today? L Regards, -Team AMP http://www.ampprod.com ====== CONFIDENTIALITY NOTICE ====== NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading,by testbot - Nginx Mailing List - English
Can someone help me convert the attached file to nginx rewrites? Regards, -Team AMP http://www.ampprod.com _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby testbot - Nginx Mailing List - English
How would this be in nginx: <Files ~ "\.xml$"> Order allow,deny Deny from all Satisfy all </Files> Regards, -Team AMP http://www.ampprod.com ====== CONFIDENTIALITY NOTICE ====== NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of thby testbot - Nginx Mailing List - English
I tried all of the replies and the following worked best. server { listen 80; server_name www.*; ... websites configuration below here } server { server_name ~^(?!www\.); rewrite ^ http://www.$host$request_uri? permanent; } Thanks everyone! On a site note... this is for sites that are on hold (fuby testbot - Nginx Mailing List - English
That goes rewrites to http://www..com/ -----Original Message----- From: owner-nginx@sysoev.ru On Behalf Of Cliff Wells Sent: Saturday, September 05, 2009 3:13 PM To: nginx@sysoev.ru Subject: RE: wildcard to rewritre multi domains to www Try this: server { server_name ~(^.+\..+$); set $name $1; rewrite ^ http://www.$name$request_uri? permanent; } Regards, Cliff On Satby testbot - Nginx Mailing List - English
Thanks. I'll do that. I was just hoping that I wouldn't have to list all domains. That works though. :) Regards, -Team AMP http://www.ampprod.com -----Original Message----- From: owner-nginx@sysoev.ru On Behalf Of Igor Sysoev Sent: Saturday, September 05, 2009 9:21 AM To: nginx@sysoev.ru Subject: Re: wildcard to rewritre multi domains to www On Sat, Sep 05, 2009 at 08:57:57AM -0500, AMPby testbot - Nginx Mailing List - English
Hi, I would like to rewrite several domains to from .example.com to www.example.com. I think the best way is to use a wild card. Too bad I suck at rewrite rules. Haha Can someone help me make the following work? if ($host != 'www.*.com') { rewrite ^/(.*)$ http://www.*.com/$1 permanent; } Regards, -Team AMP http://www.ampprod.comby testbot - Nginx Mailing List - English