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

}

server
{
listen 80;
server_name 你的域名;
rewrite ^(.*) https://你的域名$1 permanent;
}
[/code]
6.上传并重启nginx