AMH反代谷歌

此文内容已严重失效,无任何参考价值

  1. 安装AMH4.2
  2. 下载并安装”BBShijieSSL”插件.
  3. 新建一个虚拟主机,随意填,注意将默认文档删除.
  4. 在ssl管理中配置ssl(不使用ssl会跳转会谷歌).
  5. 编辑”/usr/local/nginx/conf/vhost/域名.conf”文件并覆盖如下内容:
server {
    listen 443;
    server_name 你的域名;
    ssl on;
    ssl_certificate /usr/local/nginx/conf/ssl/你的域名.crt;
    ssl_certificate_key /usr/local/nginx/conf/ssl/你的域名.pem;
    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/;
    }
}