搭建要求:
1.系统要求Nginx 1.18.0+PHP-7.2+mysql5.6,开启 ssl,php需要安装 sg11 扩展
2.设置伪静态
location / {
index index.php index.html index.htm;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?s=$1;
}
}
location /api/ {
index index.php index.html index.htm;
if (!-e $request_filename)
{
rewrite ^/api/(.*)$ /api/index.php?s=$1;
}
}
location ~* /upload/.+.(html|php)$ {
return 404;
}
location ~* ^/plugins/.+.(html|php)$ {
return 404;
}
location ~* /themes/.+.(html|php)$ {
return 404;
}







