Hello!
On Wed, Dec 25, 2013 at 11:17 PM, Makailol Charls wrote:
> I was searching to reduce number of http requests for static files. And also
> want to use replace_filter on response. Do you think if is there some other
> good options to achieve this with Nginx?
>
You can use the standard ngx_limit_conn and ngx_limit_req modules:
http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html
http://nginx.org/en/docs/http/ngx_http_limit_req_module.html
> Also is there any option to cache the output of replace_filter for
> subsequent requests? In my Nginx configuration replace_filter executes after
> the ngx_lua process.
>
There're several options, for example,
1. use ngx_srcache + ngx_redis/ngx_redis2 to cache the responses directly:
https://github.com/agentzh/srcache-nginx-module#readme
2. use ngx_proxy to do a reverse proxy to the same nginx server and
use ngx_proxy's cache based on the file system.
Regards,
-agentzh