Open Uphie opened 7 years ago
搭建后访问网站被重定向到了Google官网,https://www.google.com.br/gws_rd=cr&ei=adrtWNSdIsS6av2NsYAL 环境如下: ubuntu-16.04 nginx-1.10.0 openssl-1.0.1j zlib-1.2.11 pcre-8.40 编译安装前config如下:
./configure \ --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' \ --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' \ --prefix=/usr/share/nginx \ --conf-path=/etc/nginx/nginx.conf \ --http-log-path=/var/log/nginx/access.log \ --error-log-path=/var/log/nginx/error.log \ --lock-path=/var/lock/nginx.lock \ --pid-path=/run/nginx.pid \ --http-client-body-temp-path=/var/lib/nginx/body \ --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ --http-proxy-temp-path=/var/lib/nginx/proxy \ --http-scgi-temp-path=/var/lib/nginx/scgi \ --http-uwsgi-temp-path=/var/lib/nginx/uwsgi \ --with-debug \ --with-pcre-jit \ --with-ipv6 \ --with-http_ssl_module \ --with-http_stub_status_module \ --with-http_realip_module \ --with-http_auth_request_module \ --with-http_addition_module \ --with-http_dav_module \ --with-http_geoip_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_image_filter_module \ --with-http_v2_module \ --with-http_sub_module \ --with-http_xslt_module \ --with-stream \ --with-stream_ssl_module \ --with-mail \ --with-mail_ssl_module \ --with-threads \ --add-module=../ngx_http_google_filter_module \ --add-module=../ngx_http_substitutions_filter_module
网站配置文件基本是最简的,如下:
server { listen 80; listen [::]:80; server_name _; resolver 8.8.8.8; location / { google on; } }
前有用户在issue中也提到了这个问题,给出的方案是 ./configure 的时候加上 --with-http_ssl_module,然而我是加过的,并未启效。vps位于美国,所有操作都是位于docker容器中。
试一下最新的 dev 分支,因为 PREF 的 cookie 逻辑被 google 改了,ncr 没起作用
搭建后访问网站被重定向到了Google官网,https://www.google.com.br/gws_rd=cr&ei=adrtWNSdIsS6av2NsYAL 环境如下: ubuntu-16.04 nginx-1.10.0 openssl-1.0.1j zlib-1.2.11 pcre-8.40 编译安装前config如下:
网站配置文件基本是最简的,如下:
前有用户在issue中也提到了这个问题,给出的方案是 ./configure 的时候加上 --with-http_ssl_module,然而我是加过的,并未启效。vps位于美国,所有操作都是位于docker容器中。