簡介:
溫馨提示:本源碼提供給大家學習研究借鑒美工之用,請勿用于商業和違法用途!
安裝說明
服務器系統: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.hnymwl.com
前臺地址:/
前臺賬戶:13011112222
前臺密碼:13011112222
代理=dl
地址:/admin
賬戶:13011112222
密碼:13011112222
商戶=sh
地址:/agent
賬戶:shh001
密碼:shh001
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓記得配置偽靜態↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
主程序 Nginx偽靜態
location/{
if(!-e$request_Filename){
rewrite^(.*)$/index.php?s=$1last;break;
}
}
代理 nginx偽靜態
if(!-f$request_Filename){
set$rule_01$rule_0;
}
if(!-d$request_filename){
set$rule_02$rule_0;
}
if(-f$request_filename.php){
set$rule_03$rule_0;
}
if($rule_0="321"){
rewrite^/(.+)$/$1.phplast;
}
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=$1last;break;
}
}
圖片:




