簡介:
溫馨提示:根源碼提供應大家學習研討鑒戒美工之用,請勿用于商業和守法用處!
裝置闡明
辦事器零碎: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; } }