Commit 9e7cb8ed authored by shajiaiming's avatar shajiaiming

nginx exception handle

parent 244f152b
......@@ -7,7 +7,7 @@ require_once __DIR__ . '/InitAppHelper.php';
if (defined('REQ_ORIGIN')){
$realip = InitAppHelper::getUserIp();
$ip_list = file_get_contents('/data33/static/zhaobi_api_ip_limit.txt');
$ip_list = file_get_contents('http://47.91.223.24/zhaobi_api_ip_limit.txt');
$ip_arr = explode("\n", $ip_list);
foreach ($ip_arr as $key => $ip){
if ($ip == $realip){
......
......@@ -2,7 +2,7 @@
/* 需要修改的参数<< */
$index_root_path = '/data33/';
$app_package_path = $index_root_path . 'user_site/';
$base_path = $origin_base_path = $index_root_path . 'user_site/zhaobi/master/';
$base_path = $origin_base_path = $index_root_path . 'user_site/zhaobi/';
defined('VERSION_KEY') || define('VERSION_KEY', 'user_site_zhaobi_version');
$version_path = $index_root_path . 'version/';
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'zhaobi_main_web.php');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment