Re: correct notation of nginx

2013-10-21 Thread cubicdaiya
Hello! 2013/10/22 Maxim Dounin > Hello! > > On Tue, Oct 22, 2013 at 01:31:17AM +0900, cubicdaiya wrote: > > > Hello. > > > > Though I'm sometimes stumped about how to describing the notation of > nginx > > in text, > > is there an official notation of nginx? > > > > In detail, I'm sometimes stum

Re: Modules behaving differently on 32-bit and 64-bit systems?

2013-10-21 Thread andrewc
Maxim Dounin Wrote: --- > Quick looks suggests that the problem in xtoken module is likely > here: > > https://code.google.com/p/nginx-xtoken-module/source/browse/trunk/ngx_ > http_xtoken_module.c#660 > > It tries to estimate size of shared me

Running code in nginx's master process

2013-10-21 Thread mzabani
Is it possible to have a module run code in nginx's master process, i.e. not in a worker process? I know init_master is just a stub for now. Are there any chances this gets implemented in the near future? Thanks in advance, Marcelo. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243942

Re: Do i need mod_security for nginx?

2013-10-21 Thread agriz
[nginx-auth] enabled = true filter = nginx-auth action = iptables-multiport[name=NoAuthFailures, port="http,https"] logpath = /var/log/nginx*/*error*.log bantime = 600 # 10 minutes maxretry = 6 [nginx-login] enabled = true filter = nginx-login action = iptables-multiport[name=NoLoginFailures, port

Re: Do i need mod_security for nginx?

2013-10-21 Thread Patrick Lists
On 10/21/2013 10:12 PM, agriz wrote: Today i found one particular IP address which was trying a lot of things in my server. For a second, it was sending atleast 50 requests. It was keep on accessing my admin login page with post and get request That IP tried proxy GET http://... It tried to inje

Do i need mod_security for nginx?

2013-10-21 Thread agriz
Today i found one particular IP address which was trying a lot of things in my server. For a second, it was sending atleast 50 requests. It was keep on accessing my admin login page with post and get request That IP tried proxy GET http://... It tried to inject something in the script with -d para

Re: Authentication error or maybe it isn't? - no user/password was provided

2013-10-21 Thread dalmolin
Thank you Francis... it all makes sense! By the way, I modified the IP addresses before posting which explains why they changed... :-) Joseph Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243871,243927#msg-243927 ___ nginx mailing list ngin

Re: correct notation of nginx

2013-10-21 Thread Maxim Dounin
Hello! On Tue, Oct 22, 2013 at 01:31:17AM +0900, cubicdaiya wrote: > Hello. > > Though I'm sometimes stumped about how to describing the notation of nginx > in text, > is there an official notation of nginx? > > In detail, I'm sometimes stumped about whether selecting from the > followings. >

Re: nginx and GeoLite2

2013-10-21 Thread Maxim Dounin
Hello! On Mon, Oct 21, 2013 at 07:51:23PM +0300, wishmaster wrote: > > Hi, > > --- Original message --- > From: "Maxim Dounin" > Date: 21 October 2013, 16:13:01 > > > > Hello! > > > > On Mon, Oct 21, 2013 at 12:38:30PM +0300, wishmaster wrote: > > > > > Hi > > > I am planning to use GeoL

Re[2]: nginx and GeoLite2

2013-10-21 Thread wishmaster
Hi, --- Original message --- From: "Maxim Dounin" Date: 21 October 2013, 16:13:01 > Hello! > > On Mon, Oct 21, 2013 at 12:38:30PM +0300, wishmaster wrote: > > > Hi > > I am planning to use GeoLite with nginx. On the MaxMind website there is an > > announcement: > > > > Announcement > > F

correct notation of nginx

2013-10-21 Thread cubicdaiya
Hello. Though I'm sometimes stumped about how to describing the notation of nginx in text, is there an official notation of nginx? In detail, I'm sometimes stumped about whether selecting from the followings. * nginx * Nginx * NGINX -- Tatsuhiko Kubo E-Mail : cubicda...@gmail.com HP :

Re: Authentication error or maybe it isn't? - no user/password was provided

2013-10-21 Thread B.R.
On Mon, Oct 21, 2013 at 10:34 AM, Francis Daly wrote: > On Mon, Oct 21, 2013 at 10:15:51AM -0400, B.R. wrote: > > Hi there, > > > Maybe someone wishes to log any attempt to access a protected ressource ? > > Not sending credential is then considered as an 'error' > > Access log includes $status =

Re: Authentication error or maybe it isn't? - no user/password was provided

2013-10-21 Thread Francis Daly
On Mon, Oct 21, 2013 at 10:15:51AM -0400, B.R. wrote: Hi there, > Maybe someone wishes to log any attempt to access a protected ressource ? > Not sending credential is then considered as an 'error' Access log includes $status = 401. > Maybe someone only consider a 'void' attempt as an error if

Re: Make 1 root file accessible, and serve it for all requests

2013-10-21 Thread B.R.
I'm glad it helped. Maybe there are still some improvements, I'll let others pointing them out... You must have good reasons for preferring temporary redirects other than permanent ones, but if you really wants to redirect all traffic to the index and you don't serve existing files using their dir

Re: Authentication error or maybe it isn't? - no user/password was provided

2013-10-21 Thread B.R.
Thanks Maxim! I didn't really pay attention to the difference in the error messages. Thanks for remembering them. The question of the severity of the last message has no simple answer I'm afraid, since it depends on the use case. Maybe someone wishes to log any attempt to access a protected resso

Re: nginx and GeoLite2

2013-10-21 Thread Rainer Duffner
Am Mon, 21 Oct 2013 17:12:51 +0400 schrieb Maxim Dounin : > Hello! > > On Mon, Oct 21, 2013 at 12:38:30PM +0300, wishmaster wrote: > > > Hi > > I am planning to use GeoLite with nginx. On the MaxMind website > > there is an announcement: > > > > Announcement > > Free access to the latest in IP

Re: nginx and GeoLite2

2013-10-21 Thread Maxim Dounin
Hello! On Mon, Oct 21, 2013 at 12:38:30PM +0300, wishmaster wrote: > Hi > I am planning to use GeoLite with nginx. On the MaxMind website there is an > announcement: > > Announcement > Free access to the latest in IP geolocation databases is now available in our > GeoLite2 Databases > > I've

Re: Authentication error or maybe it isn't? - no user/password was provided

2013-10-21 Thread Maxim Dounin
Hello! On Sun, Oct 20, 2013 at 05:17:37PM -0400, B.R. wrote: > It's something a lot of people are bumping on. > > 401 HTTP covers both failed and missing authentication but isn't possible > for Nginx to differentiate those states and thus only generate an error > message on a failed (ie not empt

Re: Modules behaving differently on 32-bit and 64-bit systems?

2013-10-21 Thread Maxim Dounin
Hello! On Mon, Oct 21, 2013 at 01:13:56AM -0400, andrewc wrote: > Hi there, > > I have built nginx 1.5.6 from source, with a 3rd party module (xtoken - > http://code.google.com/p/nginx-xtoken-module/). > > I have it working fine on a 32-bit Debian Squeeze system. An identical build > on a 64-bi

Re: Expires headers for url rewrite rules

2013-10-21 Thread bogdanb
Moving the rewrite rules inside the " ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { " block did the trick. Thanks a lot for the quick reply. Francis Daly Wrote: --- > On Mon, Oct 21, 2013 at 05:52:57AM -0400, bogdanb wrote: > > Hi there, > > > locatio

Re: Make 1 root file accessible, and serve it for all requests

2013-10-21 Thread Jonah
B.R., Thanks very much! That was incredibly helpful. I had to make a couple minor tweaks to get it working, and I wanted a 302 instead of a 301, but the following is what I ended up with, and it had the added benefit of cutting response time almost in half when I did a load test: server { lis

Re: Expires headers for url rewrite rules

2013-10-21 Thread Francis Daly
On Mon, Oct 21, 2013 at 05:52:57AM -0400, bogdanb wrote: Hi there, > location / { > location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { > This works fine for everything except for the images that have the url > rewrite rules (which return 404 Not found). Anyone know what I'm doing wrong > here? One

Expires headers for url rewrite rules

2013-10-21 Thread bogdanb
In my config I have some url rewrite rules for images as seen below: location / { rewrite ^/custom/path/(.*)/(.*)-(.*).jpg$ /media/images/products/$1/$3.jpg last; } They work just fine. I'm also trying to set Expire headers for all static resources (images, css, js). I've added the following

nginx and GeoLite2

2013-10-21 Thread wishmaster
Hi I am planning to use GeoLite with nginx. On the MaxMind website there is an announcement: Announcement Free access to the latest in IP geolocation databases is now available in our GeoLite2 Databases I've used this db but nginx returned the error. Is it possible to use GeoLite2? Nginx versi