网友 fy***10 说:
在军哥lnmp环境上添加7b2.com网站,并用刚刚open**l生成的自签名**,添加到7b2上,并修改配置文件伪静态规则,**c**l能*地访问,但提示不安全**,去wordpre**主题设置授权,却显示激活**错误,大佬们怎么解决啊
******
{
listen 80;
#listen [::]:80;
******_name 7b2.com ;
index index.html index.htm index.php def**lt.html def**lt.htm def**lt.php;
**ot /home/www**ot/7b2.com;
#include rew**te/none.conf;
#er**r_page 404 /404.html;
# Deny acce** to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|c**)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
location / {
if (!-e $re*uest_filename){
rew**te ^(.*)$ /index.php/$1 last; break;
}
ret**n 301 https://$host$re*uest_**i;
}
acce**_log off;
}
******
{
listen 443 **l http2;
#listen [::]:443 **l http2;
******_name 7b2.com ;
index index.html index.htm index.php def**lt.html def**lt.htm def**lt.php;
**ot /home/www**ot/7b2.com;
**l_certificate /home/www**ot/wp/7b2.com.crt;
**l_certificate_key /home/www**ot/wp/7b2.com.key;
**l_se**ion_timeout 5m;
**l_p**tocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
**l_prefer_******_ciphers on;
**l_ciphers &*uot;TLS13-AES-256-G**-SHA384:TLS13-CHACHA20-PO**1305-SHA256:TLS13-AES-128-G**-SHA256:TLS13-AES-128-C**-8-SHA256:TLS13-AES-128-C**-SHA256:EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5&*uot;;
**l_se**ion_cache builtin:1000 shared:SSL:10m;
# open**l dhparam -out /usr/local/nginx/conf/**l/dhparam.pem 2048
**l_dhparam /usr/local/nginx/conf/**l/dhparam.pem;
include rew**te/none.conf;
#er**r_page 404 /404.html;
# Deny acce** to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|c**)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
acce**_log off;
}
网友 dafeiji 说:
顶