安装说明
服务器系统:Linux+宝塔
亲测环境:Nginx1.16.1+PHP5.6+Mysql5.5
3个程序共用1个数据库
===========================修改配置文件===========================
配置网站名称+代理地址:/web/index.php
数据库配置修改:/APP/Home/Conf/config.php
数据库配置修改:/sys/config.inc.php
数据库配置修改:/sys/config.inc.php
===========================修改配置文件===========================
===========================以下网站信息===========================
主程序=web
后台地址:/Admin/Pubss/login.html
后台账户:admin
后台密码:www.ohbbs.cn
前台地址:/
前台账户:13011112222
前台密码:13011112222
代理=dl
地址:/admin
账户:13011112222
密码:13011112222
商户=sh
地址:/agent
账户:shh001
密码:shh001
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓记得配置伪静态↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓记得配置伪静态↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓记得配置伪静态↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
主程序 nginx伪静态
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
代理 nginx伪静态
if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if (-f $request_filename.php){
set $rule_0 3$rule_0;
}
if ($rule_0 = \\\\\\\\\\\\\\\"321\\\\\\\\\\\\\\\"){
rewrite ^/(.+)$ /$1.php last;
}
rewrite /login.dos$ /index.php?act=logins;
rewrite /reg.dos$ /index.php?act=reg;
rewrite /index.dos$ /index.php?act=index;
rewrite /regs.dos$ /index.php?act=regs;
rewrite /task.dos$ /index.php?act=task;
rewrite /up.dos$ /index.php?act=up;
rewrite /zhifubao.dos$ /index.php?act=ziliaos;
rewrite /moneys.dos$ /index.php?act=moneys;
rewrite /r.dos$ /index.php?act=renwus;
商户 nginx伪静态
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}