在线工具站

安装教程:
先准备两个域名,一个做前台用一个做后台用的,二级域名也可以,例如:前台用 tool.kingzuo.com      后台用 admin.kingzuo.com
无需数据库安装环境 Nginx+php7.4
下载源码解压至网站根目录下
 宝塔面板后台设置域名运行目录设置 /public
 宝塔面板后台设置伪静态规则为 thinkphp


location / {
    if (!-e $request_filename){
        rewrite  ^(.*)$  /index.php?s=$1  last;   break;
    }
}


配置域名文件路径 /route/route.php 设置你自己的前台跟后台域名
//后台域名
Route::domain('admin.localhost', 'admin');/*填写你的后台域名*/

//前台域名
Route::domain('tool.localhost', function () {/*填写你的域名*/
    Route::domain('tool.localhost', 'index');/*填写你的域名*/
    Route::rule('404', 'index/e404');
    //接口
    Route::rule('doapi', 'index/api');
    Route::rule('api', 'index/api');
    //静态页面
    Route::rule('ip/:ip', 'index/index?act=ip')->pattern(['ip' => '.*']);
    Route::rule(':act','index/index');
});

设置后台账号密码
tool/admin.php

<?php
return [
    'Administrator' => [
        'admin',//后台用户名
        '123456'//后台密码
    ]
];


前台域名地址为:你设置前台域名
 后台地址域名为:你设置的后台域名
最后修改:2023 年 12 月 15 日
如果觉得我的文章对你有用,请随意赞赏