VeryNginx icon indicating copy to clipboard operation
VeryNginx copied to clipboard

A very powerful and friendly nginx base on lua-nginx-module( openresty ) which provide WAF, Control Panel, and Dashboards.

Results 100 VeryNginx issues
Sort by recently updated
recently updated
newest added

Just like the 5 seconds challenge provided by Cloudflare. I think it is a good way to filter CC attacks for websites for human browsing (except APIs). ![snipaste20170325_155548](https://cloud.githubusercontent.com/assets/8384161/24320623/dc94d9e2-1173-11e7-8ee0-143c0e811b14.png)

Feature request

hello 1 注意到在access阶段通过ngx.exec进行了内部跳转到静态文件的location @vn_static 看了下ngx_lua的wiki,ngx.exec不一定要是命名location才可以的,所以把@vn_static 换成了/vn_static 结果发现不能正常工作? 想问下,这里必须要是命名location么? 2 vn_exec_flag变量的置位,是因为用ngx.exec发起的请求r的变量没有变化,所以用这个标志来跳过access、rewrite等阶段是么?

question

起因:需要每个server block独自记录access_log,所以nginx.conf中写了好几个server block,端口设为不同。 结果:verynginx的配置共享了 最好的情况是能单独配置,不会互相干扰就好了。

请问在backend的proxy pass里,如何配置可以支持add upstream node的host为域名? 感放话

Feature request

> root@ZiShuo:# /usr/local/nginx-lua-1.11/sbin/nginx -t nginx: the configuration file /usr/local/nginx-lua-1.11/conf/nginx.conf syntax is ok nginx: [error] init_by_lua_file error: ...wwroot/lnmp-lua/verynginx/lua_script/VeryNginxConfig.lua:245: module 'dkjson' not found: no field package.preload['dkjson'] no file '/home/wwwroot/lnmp-lua/verynginx/lua_script/dkjson.lua' no file './dkjson.lua'...

我的配置如下 ![](http://ww1.sinaimg.cn/large/cfc08357gy1fd8edl77yrj20mz0gpwf2) ![](http://ww1.sinaimg.cn/large/cfc08357gy1fd8edl7fooj20x70l5aas) ![](http://ww1.sinaimg.cn/large/cfc08357gy1fd8edlagrtj2175024glm)

比如加载redis.lua,是把redis.lua扔到lua_script\module目录么? 还是把redis\redis.lua扔到\lua_script\resty目录里?

比如要屏蔽192.168.1.*这个段,添加的规则是192.168.1.0/24,但是似乎没有起作用,那么我需要屏蔽某个IP段该如何实现呢?

enhancement

/opt/verynginx/openresty/nginx/conf/nginx.conf里面location的配置如下: location = /static { root /home/vagrant; #index index.html index.htm; } 浏览器端访问:http://ip:80/static/test.txt时,提示/opt/verynginx/openresty/nginx/html/static/test.txt,此时不是应该访问/home/vagrant/static/test.txt吗?