测试用的本地小皮面板搭建修改伪静态:文件config/app.php根据喜欢选择
环境:php7.4、mysql5.7、redis3.0.504





密码不能少于6位
安装后开始配置
根目录改到public
配置文件D:\phpstudy_pro\Extensions\Nginx1.15.11\conf\vhosts\xxxxx_443.conf
根目录下有说明,这里我直接贴出来,路径改成自己的,服务器安装同理
location ^~ /plugins/ {
alias D:/phpstudy_pro/WWW/well3.com/plugins/;
access_log off;
expires 30d;
}
location ^~ /themes/ {
alias D:/phpstudy_pro/WWW/well3.com/themes/;
access_log off;
expires 30d;
}
location ^~ /views/ {
alias D:/phpstudy_pro/WWW/well3.com/app/views/;
access_log off;
expires 30d;
}
location ^~ /upload/ {
alias D:/phpstudy_pro/WWW/well3.com/storage/upload/;
access_log off;
expires 30d;
}
location ^~ /static/ {
alias D:/phpstudy_pro/WWW/well3.com/public/static/;
access_log off;
expires 30d;
}
伪静态
location / {
try_files $uri $uri/ /index.php?$query_string;
}
/**
* URL 风格(0~3)
* 支持多种 URL 格式:
* 0: ?user-home-1.html
* 1: user-home-1.html (0~1不推荐,不支持URL加密)
* 2~3 支持多国语言前缀,需按照多国语言插件
* 2: /user/home/1.html
* 3: /user/home/1
*/
'url_rewrite_on' => 2
