浏览 707
location / {
google on;
}
pcre
正则表达式支持ngx_http_proxy_module
后端代理支持ngx_http_substitutions_filter_module
多替代支持1. 下载nginx代码
wget http://nginx.org/download/nginx-1.7.8.tar.gz
2. 下载模块
git clone https://github.com/cuber/ngx_http_google_filter_module
3. 下载依赖
git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module
<your configuration> \
--add-module=</path/to/>ngx_http_google_filter_module \
--add-module=</path/to/>ngx_http_substitutions_filter_module
需要配置resolver
server {
# ... part of server configuration
resolver 8.8.8.8;
location / {
google on;
}
# ...
}
按点赞数排序
按时间排序