Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网站被重定向到Google官网 #130

Open
Uphie opened this issue Apr 12, 2017 · 1 comment
Open

网站被重定向到Google官网 #130

Uphie opened this issue Apr 12, 2017 · 1 comment

Comments

@Uphie
Copy link

Uphie commented Apr 12, 2017

搭建后访问网站被重定向到了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容器中。

@cuber
Copy link
Owner

cuber commented Nov 16, 2018

试一下最新的 dev 分支,因为 PREF 的 cookie 逻辑被 google 改了,ncr 没起作用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants