Re: could not find "/usr/local/nginx" after yum install nginx

2014-08-15 Thread smallfish
You can query the files in `nginx` rpm package, example: $ rpm -qa | grep nginx nginx-x.x.x $ rpm -ql nginx-x.x.x # blablabla -- smallfish http://chenxiaoyu.org On Fri, Aug 15, 2014 at 5:05 PM, 756323342 wrote: > hello,i'm new to nginx. > i'm using "yum" to in

Re: ngx.shared_dict.get_keys usage

2014-08-06 Thread smallfish
hmmm.. also you'd better to upgrade the openresty version. it' too old. :) -- smallfish http://chenxiaoyu.org On Wed, Aug 6, 2014 at 2:56 PM, Suraj Kumar wrote: > > On Wed, Aug 6, 2014 at 12:14 PM, Suraj Kumar > wrote: > >> When I do dict.get_keys(100), I see

Re: $_SERVER['QUERY_STRING'] plus-signs and whitespace

2013-12-11 Thread smallfish
'+' in url equla ' ' (base64). if value has '+', you must encode it. example: $a = "1+1"; echo urlencode($a); the correct url is: "http://x.com/?test=1%2B1"; -- smallfish http://chenxiaoyu.org On Wed, Dec 11, 2013 at 6:19 PM, basti wrote: &

Re: Fake Basic Auth

2013-08-25 Thread smallfish
use ngx_lua for 401 auth example: http://chenxiaoyu.org/2012/02/08/nginx-lua-401-auth.html -- smallfish http://chenxiaoyu.org On Sun, Aug 25, 2013 at 2:53 PM, Christian Felsing wrote: > Hello, > > I am new to nginx and have following problem: > > Nginx should be used as a re

Re: rds-json generate json with index key on first level of array

2013-02-25 Thread smallfish
can use ngx_lua(openresty), filter/format the output. -- smallfish http://chenxiaoyu.org On Mon, Feb 25, 2013 at 4:04 PM, replay wrote: > I just realized that I messed up the formatting. Actually what I'm looking > for should be like this: > > { > > 1971:{"nickna