AMH 反代谷歌
此内容年代久远,谨慎参考
- 安装AMH4.2
- 下载并安装”BBShijieSSL”插件.
- 新建一个虚拟主机,随意填,注意将默认文档删除.
- 在ssl管理中配置ssl(不使用ssl会跳转会谷歌).
- 编辑”/usr/local/nginx/conf/vhost/域名.conf”文件并覆盖如下内容:
nginxserver {
listen 443;
server_name 你的域名;
ssl on;
ssl_certificate /usr/local/nginx/conf/ssl/你的域名.crt;
ssl_certificate_key /usr/local/nginx/conf/ssl/你的域名.key;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP;
location / {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_pass https://www.google.com/;
}
}