Re: Minimal configuration

2014-02-17 Thread B.R.
Thanks for your help, Francis! That's an amazingly detailed explanation. The differences in behavior between 'normal' arguments and the last one are the key but the doc does not (cannot?) go into details about them. --- *B. R.* ___ nginx mailing list ngi

RE: Proxy pass location inheritance

2014-02-17 Thread Brian Hill
So there is no precedence given to nested regex locations at all? What value does nesting provide then? This seems like it should be a fairly simple thing to do. Image/CSS requests to some folders get handled one way, and image/CSS requests to all other folders get handled another way. This is

Re: Minimal configuration

2014-02-17 Thread Francis Daly
On Mon, Feb 17, 2014 at 02:13:14PM +0100, B.R. wrote: Hi there, > What I called 'error handler' was the final argument of the try_files > directive, the one used if any other one fails to detect a valid > file/directory. So: the "uri" argument. If try_files gets as far as the uri argument, ther

Re: Proxy pass location inheritance

2014-02-17 Thread Maxim Dounin
Hello! On Mon, Feb 17, 2014 at 05:15:45PM +, Brian Hill wrote: > So it sounds like my only solution is to restructure the locations to avoid > the original match in /. I don't have access to the servers again until > tomorrow, but I'm wondering if something like this would work: > > locati

RE: Proxy pass location inheritance

2014-02-17 Thread Brian Hill
So it sounds like my only solution is to restructure the locations to avoid the original match in /. I don't have access to the servers again until tomorrow, but I'm wondering if something like this would work: location / { #base content } location ~ regex2 { #alternate fo

Re: headers_in_hash

2014-02-17 Thread Maxim Dounin
Hello! On Fri, Feb 14, 2014 at 04:39:23PM -0500, atarob wrote: > Creating a module, I want to read in from config desired http header fields. > Then, during config still, I want to get the struct offset for the fields > that have dedicated pointers in the header_in struct. It seems that when I >

Does $remote_port has to change when streaming ?

2014-02-17 Thread Larry
Hello ! I tried but cannot trust myself (and what I tried) : when streaming / playing video in the client browser, does the client's port ($remote_port) may change ? in the logs when configuring remote_port I believe that if the connection is dropped, another port will be assigned, but in case ev

Re: inlining

2014-02-17 Thread Maxim Dounin
Hello! On Fri, Feb 14, 2014 at 04:59:26PM -0500, atarob wrote: > Looking through the codebase, I see a lot of very short helper like > functions that are defined in .c files with prototypes in .h files. This > means that the compiler cannot inline them outside of that .c file. Am I > wrong? How

Re: Proxy cache passes GET instead of HEAD to upstream

2014-02-17 Thread Maxim Dounin
Hello! On Sat, Feb 15, 2014 at 02:23:26AM +0400, Valentin V. Bartenev wrote: > On Friday 14 February 2014 17:11:37 jove4015 wrote: > [..] > > Is there any way to set up the proxy to the upstream so that it proxies HEAD > > requests as HEAD requests, and GET requests as normal, and still caches >

Re: Minimal configuration

2014-02-17 Thread B.R.
Sorry for my fluffy terminology. What I called 'error handler' was the final argument of the try_files directive, the one used if any other one fails to detect a valid file/directory. We ended concluding that: try_files $uri $uri/; was invalid, looping internally for an infinite amount of time try

Re: Proxy pass location inheritance

2014-02-17 Thread Maxim Dounin
Hello! On Mon, Feb 17, 2014 at 08:55:02AM +, Brian Hill wrote: > Close, it's more akin to: > > location / { > location ~ regex1 { > # regex inside / > } > } > > location ~ regex2 { > location ~ regex3 { > # regex inside regex2 >

Re: cache-proxy passes garbled fonts + alias problem

2014-02-17 Thread Maxim Dounin
Hello! On Mon, Feb 17, 2014 at 02:08:47PM +0200, Beeblebrox wrote: > Is there any possibility to get some input re this problem? > Where can I start looking for answers? http://www.catb.org/~esr/faqs/smart-questions.html -- Maxim Dounin http://nginx.org/ __

cache-proxy passes garbled fonts + alias problem

2014-02-17 Thread Beeblebrox
Is there any possibility to get some input re this problem? Where can I start looking for answers? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx like Rewrite feature (.htaccess) doesn't seem to be working (Help)

2014-02-17 Thread Maxim Dounin
Hello! On Sun, Feb 16, 2014 at 11:58:00AM +, Paulo Ferreira wrote: > Good Morning. > > > I'm making a site and I want to make the link more usable so I used the > Apache's RewriteCond which is the one I more comfortable with. I know that > there are a site or two that lets me convert and so

Re: nginx limit_rate if in location - strange behaviour - possible bug ?

2014-02-17 Thread Jonathan Matthews
On 17 February 2014 10:02, Bozhidara Marinchovska wrote: > My question is what may be the reason when downloading the example file with > download manager not to match limit_rate directive "Download managers" open multiple connections and grab different byte ranges of the same file across those c

Re: nginx limit_rate if in location - strange behaviour - possible bug ?

2014-02-17 Thread Bozhidara Marinchovska
Hi, again FreeBSD 9.1-STABLE #0: Sat May 18 00:32:18 EEST 2013 amd64 nginx version: nginx/1.4.4 TLS SNI support enabled configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin

Re: Proxy pass location inheritance

2014-02-17 Thread Francis Daly
On Mon, Feb 17, 2014 at 08:55:02AM +, Brian Hill wrote: Hi there, > Regex 1 & 3 look for the same file types and are identical, but contain > different configurations based on the parent location. Currently, regex1 is > catching all matches, irrespective of the parent location. > > If I un

RE: Proxy pass location inheritance

2014-02-17 Thread Brian Hill
Close, it's more akin to: location / { location ~ regex1 { # regex inside / } } location ~ regex2 { location ~ regex3 { # regex inside regex2 } } And the question is: where will a request matching both regex1 and regex3 be

Re: Minimal configuration

2014-02-17 Thread Francis Daly
On Mon, Feb 17, 2014 at 12:42:28AM +0100, B.R. wrote: Hi there, > If I may, there is still a little something bothering me: > The condition required for a loop to be created is that $uri (= /) doesn't > match any file, thus redirecting and trying again. > Why on Earth does '/' as error handler ma