Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Justin Deltener
Rolled into production and after tens of thousands of page requests only 3 were smacked down and all were bogus security scanners or "bad dudes" MISSION ACCOMPLISHED! Thanks a ton Maxim! On Wed, Nov 13, 2013 at 10:20 AM, Justin Deltener wrote: > I'll give that a try. I really appreciate your hel

Re: sidebar menu + directory listing

2013-11-13 Thread ge...@riseup.net
On 13-11-13 23:52:05, ge...@riseup.net wrote: > On 13-11-13 22:09:40, Francis Daly wrote: > > On Wed, Nov 13, 2013 at 10:56:28PM +0100, ge...@riseup.net wrote: > > > On 13-11-13 21:45:46, Jonathan Matthews wrote: > > For directory listings, do a manual "ls" (or whatever) once to hard-code > > the h

Re: sidebar menu + directory listing

2013-11-13 Thread Francis Daly
On Wed, Nov 13, 2013 at 11:52:05PM +0100, ge...@riseup.net wrote: > On 13-11-13 22:09:40, Francis Daly wrote: > > On Wed, Nov 13, 2013 at 10:56:28PM +0100, ge...@riseup.net wrote: Hi there, > Sorry, maybe I'm dumb, I'm not sure if I get it... I'm trying to suggest that you do the background not-

Re: sidebar menu + directory listing

2013-11-13 Thread ge...@riseup.net
Hi, Sorry, maybe I'm dumb, I'm not sure if I get it... On 13-11-13 22:09:40, Francis Daly wrote: > On Wed, Nov 13, 2013 at 10:56:28PM +0100, ge...@riseup.net wrote: > > On 13-11-13 21:45:46, Jonathan Matthews wrote: > > > On 13 November 2013 21:35, ge...@riseup.net wrote: > > > Looks to me like

Re: sidebar menu + directory listing

2013-11-13 Thread António P . P . Almeida
Quite simply make all locations that are to listed use the autoindex on; directive. If I understood correctly you want all vhosts of the form sub.domain.tld be listed. So just make the "catch all" location / use the autoindex directive. Le 13 nov. 2013 22:57, "ge...@riseup.net" a écrit : > Hi, >

Re: sidebar menu + directory listing

2013-11-13 Thread Francis Daly
On Wed, Nov 13, 2013 at 10:56:28PM +0100, ge...@riseup.net wrote: > On 13-11-13 21:45:46, Jonathan Matthews wrote: > > On 13 November 2013 21:35, ge...@riseup.net wrote: Hi there, > > Looks to me like you want to use frames and write yourself some pretty > > basic HTML. I don't know of anything

Re: Nagios check for nginx with separate metrics

2013-11-13 Thread Francis Daly
On Wed, Nov 13, 2013 at 05:10:25PM +0200, Nikolaos Milas wrote: > On 27/10/2013 9:09 μμ, Nikolaos Milas wrote: Hi there, > >All of the available (to my knowledge) nginx Nagios checks > >produce comprehensive output which includes all "metrics" together, > >Output with a single metric at a tim

Re: sidebar menu + directory listing

2013-11-13 Thread ge...@riseup.net
Hi, On 13-11-13 21:45:46, Jonathan Matthews wrote: > On 13 November 2013 21:35, ge...@riseup.net wrote: > Looks to me like you want to use frames and write yourself some pretty > basic HTML. I don't know of anything that's that application-a-like > that comes /inside/ nginx itself, however. Yeah

Re: sidebar menu + directory listing

2013-11-13 Thread Jonathan Matthews
On 13 November 2013 21:35, ge...@riseup.net wrote: > Hi all, > > I'd like to achieve the following, and found nothing so far trough > research. Maybe someone could give me a pointer whether this is possible > or not. > > I'd like to use directory listing for some folders, which are made > accessib

sidebar menu + directory listing

2013-11-13 Thread ge...@riseup.net
Hi all, I'd like to achieve the following, and found nothing so far trough research. Maybe someone could give me a pointer whether this is possible or not. I'd like to use directory listing for some folders, which are made accessible trough a location directive. At the same time, it should be sub

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Justin Deltener
I'll give that a try. I really appreciate your help Maxim! On Wed, Nov 13, 2013 at 10:01 AM, Maxim Dounin wrote: > Hello! > > On Wed, Nov 13, 2013 at 09:09:55AM -0600, Justin Deltener wrote: > > > Aha, that is the lightbulb moment. > > > > So if we're talking actual rate..which makes sense how

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Maxim Dounin
Hello! On Wed, Nov 13, 2013 at 09:09:55AM -0600, Justin Deltener wrote: > Aha, that is the lightbulb moment. > > So if we're talking actual rate..which makes sense how would you setup a > scenario with the following requirements. > > You can have whatever rate you want as long as you don't exce

Re: Nagios check for nginx with separate metrics

2013-11-13 Thread Nikolaos Milas
On 27/10/2013 9:09 μμ, Nikolaos Milas wrote: I am trying to run a Nagios check for nginx (in Opsview Core) but I have a problem: All of the available (to my knowledge) nginx Nagios checks (http://exchange.nagios.org/directory/Plugins/Web-Servers/nginx/) produce comprehensive output which incl

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Justin Deltener
Aha, that is the lightbulb moment. So if we're talking actual rate..which makes sense how would you setup a scenario with the following requirements. You can have whatever rate you want as long as you don't exceed 5 proxy requests in the same second. I don't care if 5 come within 5ms of each othe

Re: SSL Handshake problems, nginx reverse web proxy.

2013-11-13 Thread Nathan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/12/2013 04:18 PM, Maxim Dounin wrote: > If it doesn't work for you, you have another obvious option: fixing > a backend will do the trick, too. Yes, i think this is the optimal solution, but the back end is a blackbox controlled by a vendor.

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Maxim Dounin
Hello! On Wed, Nov 13, 2013 at 07:17:36AM -0600, Justin Deltener wrote: [...] > current requests..which is what i'm attempting to do) Using a burst of 6, i > would expect a request of 8 in one second would have 4 at full speed, 2 > delayed and 2 dropped but it seems that's where i'm horribly wro

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Justin Deltener
I thought I did a good job detailing my issue and setup and clearly didn't do that well. I apologize. 1) I am using limits, which is why i mentioned it is delaying requests. Specifically i'm using limit_req zone=proxyzone burst=6; 2) I understand the difference between delay request and one resp

Re: limit_req_zone limit by location/proxy

2013-11-13 Thread Maxim Dounin
Hello! On Tue, Nov 12, 2013 at 09:24:57PM -0600, Justin Deltener wrote: > For the life of me I can't seem to get my configuration correct to limit > requests. I'm running nginx 1.5.1 and have it serving up static content and > pushing all non-existent requests to the apache2 proxy backend for ser

Re: Inconsistency in ability to use variables in nginx config

2013-11-13 Thread Valentin V. Bartenev
On Wednesday 13 November 2013 10:25:44 miguel_hamster wrote: > It seems like it's possible to use variables in some configuration > directives but not in others. This works: > > root /usr/www/$sitename/httpdocs; > > works, while these: > > access_log /var/log/www/$sitename/access.log; This shou