系统:Ubuntu 18.04.1 LTS 64位
宝塔:7.9.0 免费版
Nginx:1.15.10
在软件商店使用 WordPress 5.6版本创建站点后,无法通过http 访问,生成 ssl,开启强制https,使用 http 同样是只能访问到 【没有找到站点】页面, https 访问正常,新增子域名却可以通过http 访问
没有找到站点
server
{
listen 80;
listen 443 ssl http2;
server_name [域名];
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/[域名];
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
#error_page 404/404.html;
#HTTP_TO_HTTPS_START
if ($server_port !~ 443){
rewrite ^(/.*)$ https://$host$1 permanent;
}
....
}
|
|