wget http://nginx.org/download/nginx-1.13.12.tar.gz
git clone https://github.com/cuber/ngx_http_google_filter_module
git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module
yum install pcre-devel zlib-devel openssl-devel -y
./configure --prefix=/root/nginx --add-module=../ngx_http_google_filter_module --add-module=../ngx_http_substitutions_filter_module --with-http_ssl_module
make
make install
server {
listen 3392;
server\_name localhost;
resolver 8.8.8.8;
location / {
google on;
allow xxx;
deny all;
}
}