Re: Compiling and using NGINX in multi thread mode

2015-03-24 Thread nitesh narayan lal
Hi Maxim, On Tue, Mar 24, 2015 at 10:20 PM, Maxim Dounin wrote: > Hello! > > On Tue, Mar 24, 2015 at 01:03:11PM +0530, nitesh narayan lal wrote: > > > Hi, > > > > I hope that I am posting at the right place. > > I am trying to figure out if multi-thread mode is supported with the > > latest rele

most of value of $request_time is 0.000

2015-03-24 Thread baipeng
Our version of nginx is nginx/1.0.8 and we have write a third party module to handle the http request. Because the process model of our third party module is synchronous so the nginx worker process will be blocked until one request accomplished. The average time cost of one request is about 50m

Re: Default value of gzip_proxied

2015-03-24 Thread B.R.
Hi, ​ > > The gzip_proxied > > > > default value is set to honor the HTTP/1.0 protocol (which does not have > > the Vary header and thus is unable to cache different versions of a > > document) in some proxies. > > You are stil

Re: disable file uploads

2015-03-24 Thread Jonathan Vanasco
On Mar 23, 2015, at 11:15 PM, Steve Holdoway wrote: > Well, I'm going for the multiple levels of protection approach, but am > trying to mate that with a 'simple to maintain' methodology. > > So, yes I'd like to do both, but without being heavy-handed on the > website owners. I understand the

Re: proper way to redirect from http to https w/query string notifier

2015-03-24 Thread Jonathan Vanasco
On Mar 24, 2015, at 3:26 PM, Francis Daly wrote: > but the original "if ($query_string)" is probably simpler at > that point. thanks for the help! it's great having a second set of eyes on this! ___ nginx mailing list nginx@nginx.org http://mailman.

Re: proper way to redirect from http to https w/query string notifier

2015-03-24 Thread Jonathan Vanasco
On Mar 24, 2015, at 2:10 PM, Gena Makhomed wrote: > Probably you can do such tracking just looking at Referer request header Long story short - we actually are doing that. This is just to get stats into the HTTPS log analyzer, which is a different system and much easier for us to deploy chang

Re: disable file uploads

2015-03-24 Thread Francis Daly
On Wed, Mar 25, 2015 at 09:04:18AM +1300, Steve Holdoway wrote: Hi there, > Just had another attack on a drupal site. Should I resort to weird > ownership / permissions at a system level? >From what I've read in the thread, you seem to have two possible approaches. One is "stop the unwanted fil

Re: disable file uploads

2015-03-24 Thread Steve Holdoway
On Tue, 2015-03-24 at 16:15 +1300, Steve Holdoway wrote: > On Mon, 2015-03-23 at 19:57 -0700, Robert Paprocki wrote: > > Sounds like you either have a vulnerable web application or hole in your > > systems security. If the root of your problem is that your having content > > uploaded to your serv

Re: Default value of gzip_proxied

2015-03-24 Thread Maxim Dounin
Hello! On Tue, Mar 24, 2015 at 07:11:17PM +0100, B.R. wrote: > Hi Maxim, > > There is still something I do not get... > > The gzip_proxied > > default value is set to honor the HTTP/1.0 protocol (which does not have > the Va

Re: proper way to redirect from http to https w/query string notifier

2015-03-24 Thread Francis Daly
On Wed, Mar 25, 2015 at 02:50:29AM +0900, Edho Arief wrote: > On Wed, Mar 25, 2015 at 2:32 AM, Francis Daly wrote: Hi there, > > If your backend will accept /request?source=server1 and > > /request?&source=server1 as being equivalent, then you could use the > > $is_args variable and just always

Re: Default value of gzip_proxied

2015-03-24 Thread B.R.
Hi Maxim, There is still something I do not get... The gzip_proxied default value is set to honor the HTTP/1.0 protocol (which does not have the Vary header and thus is unable to cache different versions of a document) in some

Re: proper way to redirect from http to https w/query string notifier

2015-03-24 Thread Gena Makhomed
On 24.03.2015 17:33, Jonathan Vanasco wrote: i need to redirecting from http to https, and append a "source" attribute for tracking (we're trying to figure out how the wrong requests are coming in) Probably you can do such tracking just looking at Referer request header this seems to work:

Re: proper way to redirect from http to https w/query string notifier

2015-03-24 Thread Edho Arief
On Wed, Mar 25, 2015 at 2:32 AM, Francis Daly wrote: > On Tue, Mar 24, 2015 at 11:33:41AM -0400, Jonathan Vanasco wrote: > > Hi there, > >> if ($query_string){ >> return 301 >> https://$host$request_uri&source=server1 ; >>

Re: proper way to redirect from http to https w/query string notifier

2015-03-24 Thread Francis Daly
On Tue, Mar 24, 2015 at 11:33:41AM -0400, Jonathan Vanasco wrote: Hi there, > if ($query_string){ > return 301 > https://$host$request_uri&source=server1 ; > } > return 301 https://$host$request_uri?s

Re: Compiling and using NGINX in multi thread mode

2015-03-24 Thread Maxim Dounin
Hello! On Tue, Mar 24, 2015 at 01:03:11PM +0530, nitesh narayan lal wrote: > Hi, > > I hope that I am posting at the right place. > I am trying to figure out if multi-thread mode is supported with the > latest release, and if so then what I need to do for using it? > I am trying to compile it fr

nginx-1.7.11

2015-03-24 Thread Maxim Dounin
Changes with nginx 1.7.1124 Mar 2015 *) Change: the "sendfile" parameter of the "aio" directive is deprecated; now nginx automatically uses AIO to pre-load data for sendfile if both "aio" and "sendfile" directives are used. *) Feature:

Re: Why subtraction is used to compare in nginx_rbtree.c?

2015-03-24 Thread Maxim Dounin
Hello! On Tue, Mar 24, 2015 at 03:39:23PM +0800, 张奕普 wrote: > When I study the rbtree of nginx I can't understand the comments. Can > someone give me a concrete example?Thanks :) [...] > /* > * Timer values > * 1) are spread in small range, usually several minutes, >

proper way to redirect from http to https w/query string notifier

2015-03-24 Thread Jonathan Vanasco
i need to redirecting from http to https, and append a "source" attribute for tracking (we're trying to figure out how the wrong requests are coming in) this seems to work: if ($query_string){ return 301 https://$host$request_uri&source=s

Why subtraction is used to compare in nginx_rbtree.c?

2015-03-24 Thread 张奕普
When I study the rbtree of nginx I can't understand the comments. Can someone give me a concrete example?Thanks :) for ( ;; ) { /* * Timer values * 1) are spread in small range, usually several minutes, * 2) and overflow each 49 days, if milliseconds are stored

Compiling and using NGINX in multi thread mode

2015-03-24 Thread nitesh narayan lal
Hi, I hope that I am posting at the right place. I am trying to figure out if multi-thread mode is supported with the latest release, and if so then what I need to do for using it? I am trying to compile it from its source code for PowerPC architecture. But I have seen that the following is been c