CentOS环境下部署wordpress,配置nginx站点走https

xiaoxiao2021-03-01  38

1. https://www.freessl.org/ 一个提供免费HTTPS证书申请的网站.

申请证书下载,配置见 https://blog.freessl.org/how-to-install-cert-in-nginx/

2. 配置好 https 后,wordpress 后台报错 404.

https://oldpan.me/archives/wordpress-wp-admim-404

location / { index index.html index.php; if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } rewrite /wp-admin$ $scheme://$host$uri/ permanent;
3. 配置好 https,访问网站还是没有显示安全,原因可能是因为有一些资源使用了 http。

https://angeltime.cc/archives/494.html

转载请注明原文地址: https://www.6miu.com/read-4550046.html

最新回复(0)