403安装SSL后禁止在nginx / 1.12.0中使用(CentOS6)

时间:2017-07-15 20:29:53

标签: wordpress ssl nginx centos6

我在CentOS 6(Nginx)中安装Wordpress 安装SSL Certificat之后我绊倒了 错误403 Forbidden nginx / 1.12.0 ?

/etc/nginx/Conf.d/ssl.conf

 server {
    listen 443;
    server_name Sitename.com www.Sitename.com;

    ssl on;
    sslcertificate /etc/ssl/serverchain.crt;
    sslcertificatekey /etc/nginx/ssl/server.key;

    accesslog /var/log/nginx/nginx.vhost.access.log;
    errorlog /var/log/nginx/nginx.vhost.error.log;

    location / {

    root /var/www/;
    index index.html;
    }

    }

但是当你改变

location / {

root /var/www/;
index index.html;
}

 location / {

root /var/www/html;
index index.html index.htm index.php;

}

进入网站时,页面已加载 解决方案是什么?

0 个答案:

没有答案