1.首先找到一个能用的google镜像 这里提供一个浙江大学通用镜像
浙江大学站点:https://g.luciaz.me/
问题参考答案:1、心灵之约; 2、水朝夕; 3、csxy@123
2.先用nginx进行域名转发
server{
listen 443 ssl;
server_name google.xingcen.top;
#证书文件路径
ssl_certificate cert/_.xingcen.top.pem;
#证书私钥文件路径
ssl_certificate_key cert/_.xingcen.top.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location /search {
# 你可以在这里进行其他处理,例如转发请求到另一个服务器
proxy_pass https://g.luciaz.me;
}
error_log /usr/local/nginx/logs/error.log debug;
}
3.在浏览器中进行搜索引擎配置 ,也可以跳过第2步将google镜像直接放到搜索引擎中进行默认搜索也可以