Re: [Ask for help] Questions about proxy_cache and ssi

2013-09-23 Thread mex
Hell FoxBin, can you please post your whole proxy_* - config? since your footer.html gets included and displayed via 1/2/3.html, this file itself will never get cached, thus never can be purged, because it becomes part of the output of 1/2/3.html. "simple" caching is done based on URLs rega

[Ask for help] Questions about proxy_cache and ssi

2013-09-23 Thread FoxBin
Hello list, I hava a nginx config problem , Please help look ! I use proxy_cache and ssi. *nginx config :* ssi on; ssi_silent_errors on; ssi_types text/shtml; proxy_temp_path /cache/proxy_temp; proxy_cache_path /cache/proxy_cache levels=1:2 keys_zone=tmp_cache:2000m inactive=1d max

Re: Drainstop/Graceful stop?

2013-09-23 Thread Igor Sysoev
On Sep 24, 2013, at 1:15 , Sapherz wrote: > Hi, > Sorry if this is a but of a bumb question, but we're moving from NLB to > using Nginx as a load balancer. Whats the best way to do an equivelient of a > drain-stop to one upstram server? Would it be a graceful stop, then a quick > service restart w

Re: Compare variable got from location with set of strings

2013-09-23 Thread Jonathan Matthews
On 23 September 2013 11:03, Vil Surkin wrote: > Hello, > > I have some location in configuration like this: > location ~ /([A-z]+_[A-z0-9]+) { > … do something (got $1) … > } > > And i need to compare this '$1' with a set of strings. How can i do this? Use a named capture in the location line an

Re: Override proxy's incorrect Content-Type via mime settings

2013-09-23 Thread neoascetic
Have same problem, but for different types of files. I have found a workaround using "map" directive, where pattern is an URI extension and value is a mime-type, but seems a little bit weird and requires to create a map from all possible extension. Is there any way to reuse standard "mime.types" t

Drainstop/Graceful stop?

2013-09-23 Thread Sapherz
Hi, Sorry if this is a but of a bumb question, but we're moving from NLB to using Nginx as a load balancer. Whats the best way to do an equivelient of a drain-stop to one upstram server? Would it be a graceful stop, then a quick service restart with a new .conf that don't have the server in questio

Re: Preferred way to do redirects (rewrite or return)

2013-09-23 Thread Valentin V. Bartenev
On Tuesday 24 September 2013 00:38:53 justin wrote: > What is the preferred way to do redirects? I know of two solutions: > > rewrite "^/help/?$" https://support.mydomain.com permanent; > > or > > location ^/help/?$ { > return 301 https://support.mydomain.com; > } > > I think I like using a l

Preferred way to do redirects (rewrite or return)

2013-09-23 Thread justin
What is the preferred way to do redirects? I know of two solutions: rewrite "^/help/?$" https://support.mydomain.com permanent; or location ^/help/?$ { return 301 https://support.mydomain.com; } I think I like using a location block and a return statement. Which is faster though and the stand

Re: reverse proxy removes Transfer-Encoding: chunked

2013-09-23 Thread Maxim Dounin
Hello! On Mon, Sep 23, 2013 at 02:34:28PM -0400, Pommi wrote: > I'm trying to setup a nginx (1.4.1) reverse proxy to a HornetQ API using > this configuration: > > proxy_http_version 1.1; > proxy_set_header Host $host; > upstream app { > server 127.0.0.1:8000; > keepalive 8; > } > server

reverse proxy removes Transfer-Encoding: chunked

2013-09-23 Thread Pommi
I'm trying to setup a nginx (1.4.1) reverse proxy to a HornetQ API using this configuration: proxy_http_version 1.1; proxy_set_header Host $host; upstream app { server 127.0.0.1:8000; keepalive 8; } server { listen 0.0.0.0:7000; server_name localhost; location / { deny all; }

Re: Log module question: does the buffer mess up the order of the log entries?

2013-09-23 Thread Valentin V. Bartenev
On Monday 23 September 2013 05:59:29 海峰 刘 wrote: > Hi experts, > > I am reading the log module source code, there is something difficult to > make sure, so I ask for your help. > > Access log module use a buffer to buffer log entries before writing to the > file system, the buffer is initialised

Re: Transforming nginx for Windows

2013-09-23 Thread itpp2012
Lua compiled in! Transforming nginx for Windows: http://forum.nginx.org/read.php?2,242426 https://groups.google.com/forum/#!forum/openresty-en (Lua nginx compiled for nginx windows) Builds can be found here: http://nginx-win.ecsds.eu/ 10:37 23-9-2013: nginx 1.5.6.1 Alice Based on nginx 1.

Re: Log module question: does the buffer mess up the order of the log entries?

2013-09-23 Thread Maxim Dounin
Hello! On Mon, Sep 23, 2013 at 09:59:29AM +0800, 海峰 刘 wrote: > Hi experts, > > I am reading the log module source code, there is something > difficult to make sure, so I ask for your help. > > Access log module use a buffer to buffer log entries before > writing to the file system, the buffer

Compare variable got from location with set of strings

2013-09-23 Thread Vil Surkin
Hello, I have some location in configuration like this: location ~ /([A-z]+_[A-z0-9]+) { … do something (got $1) … } And i need to compare this '$1' with a set of strings. How can i do this? Thanks!___ nginx mailing list nginx@nginx.org http://mailman

RE: nginx-1.5.5

2013-09-23 Thread Lukas Tribus
Hi! > *) Bugfix: OpenSSL 1.0.1f compatibility. > Thanks to Piotr Sikora. Since SSL_OP_MSIE_SSLV2_RSA_PADDING is more than obsolete now, shouldn't we remove it completely instead of just ifdef'ing it? At least in the 1.5 branch? Thanks! Lukas

Read quotes about courage

2013-09-23 Thread matthewdavis9179
Quotes have motivated many people from age groups and have assisted them to comprehend their way of way of lifestyle in a better way. They have been essential [url=http://www.searchquotes.com/quotes/about/Happy/][b]happy quotes[/b][/url] from plenty of your energy and effort personal came into way

Re: ngx_lua + proxy_next_upstream

2013-09-23 Thread Jedrzej Nowak
Hey, Thanks for your reply. Is there any good "example" of thing what I want to archive ? Shall I create something like: location @blah { # here the "normal" configuration for LB } location / { # here the LUA logic # probably with share_all_vars=true # subrequest to @blah }