Press "Enter" to skip to content

Fastadmin安装到linux服务器时需要进行的配置

1、nginx服务器需要配置伪静态

location / {
            root   /usr/local/nginx/html/xingzhou/tcdy_mini_img/public;
            index  index.php index.html index.htm;
            # try_files $uri $uri/ /index.php?$query_string;
                if (!-e $request_filename) {
                   rewrite ^(.+?\.php)(/.+)$ /$1?s=$2 last;
                   rewrite ^(.*)$ /index.php?s=$1 last; break;
                }

            # rewrite ^(.+?\.php)(/.+)$ /$1?s=$2 last;
        }

2、在后台入口文件 sGQNKZeFmE.php

// 设置根url
\think\Url::root('/sGQNKZeFmE.php');

发表评论