摘要:
access_by_luaaccess阶段。事例:location / { deny 192.168.1.1; allow 192.168.1.0/24; allow 10.1.1.0/16; deny all; access_by_lua ' local res = ngx.location.capture("/mysql", { ... }) ... '; # proxy_pass/fastcgi_pass/... }也... 阅读全文
posted @ 2013-07-19 17:37
李秋
阅读(917)
评论(0)
推荐(0)
摘要:
最近经常使用春哥和小哲老师写的NGINX-LUA,非常苦于没有中文文档,特别是向我这种英文水平实在有限的同学,所以将遇到的模块记录下来,供以后参考!原文:http://wiki.nginx.org/HttpLuaModulelua_code_cache一般放在nginx.conf里面,设置lua程序是否缓存,默认是开启的,开发模式开启即可:lua_code_cache off。开启后,重启nginx会有提示:nginx: [warn] lua_code_cache is off; this will hurt performance in /home/wb-liqiu/git/dante/co 阅读全文
posted @ 2013-07-19 15:37
李秋
阅读(3541)
评论(0)
推荐(0)
摘要:
命令事例 发送POST请求: 如果传输文件:curl -F "blob=@tmp.txt;type=text/plain" localhost:8080/request_body 普通post请求:curl -d "method=searchone&module=seller&user_name=w 阅读全文
posted @ 2013-07-19 15:05
李秋
阅读(16631)
评论(0)
推荐(1)
浙公网安备 33010602011771号