我在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;
}
进入网站时,页面已加载 解决方案是什么?