目录

  • Set Nginx
  • Set index.php
  • Set yii_app_config.php


Set Nginx

server {listen       80;server_name  www.test.com/mysticbinary/ ;root   "D:\ProgramFiles\phpstudy\PHPTutorial\WWW\A";   # the `/A` file must hava `index.php`location / {index  index.php index.html index.htm;#nginx ignore index.phpif (!-e $request_filename){  rewrite ^/(.*) /index.php last;  }    }location ~ \.php(.*)$ {fastcgi_pass   127.0.0.1:9000;fastcgi_index  index.php;fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;fastcgi_param  PATH_INFO  $fastcgi_path_info;fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;include        fastcgi_params;}
}

Set index.php

# ...require_once(FRAMEWORK_PATH . '/yii.php');
$config = $strDir . '/../config/yii_app_config.php';
$app = Yii::createWebApplication($config);# ...

Set yii_app_config.php

Autoloading model and component classes.

# ...'import' => array('application.components.*','ext.api.*','ext.phpconnectpool.*','ext.exception.*','ext.rongconfig.*','Youseleve.Redis.*','Xxx.Db.*',
# ...

the Xxx is the name you define.

转载于:https://www.cnblogs.com/mysticbinary/articles/11014682.html

Yii2 Start Process and File Loading相关推荐

  1. 解决GitHub中报错Something went really wrong and we can’t process that...

    解决GitHub中报错Something went really wrong and we can't process that...   最近,GitHub 进行了更新,笔者在使用过程中遭遇了如下几 ...

  2. process获取父进程_Windows Process Explorer获取有关进程的详细信息

    process获取父进程 Windows provides different tools to list and get information about processes. The task ...

  3. node.js中模块_在Node.js中需要模块:您需要知道的一切

    node.js中模块 by Samer Buna 通过Samer Buna 在Node.js中需要模块:您需要知道的一切 (Requiring modules in Node.js: Everythi ...

  4. Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:命令选项...

    Server Command Options --help, -? Command Line Format -? Config File Format help Display a short hel ...

  5. modelsim加入xilinx ISE库的方法

    文章目录 背景 方法 背景 由于ISE仿真用Isim虽然也行,但是用习惯了modelsim,还是用modelsim方便.为了避免每次都要重复编译xilinx的库,可以一次性将所有xilinx的库编译后 ...

  6. oracle诊断,Oracle 诊断事件列表

    Oracle 诊断事件列表 (2013-03-26 18:05:26) 标签: oracle 诊断事件 it ORA-10000: controlfile debug event, name 'con ...

  7. tidb数据库_异构数据库复制到TiDB

    tidb数据库 This article is based on a talk given by Tianshuang Qin at TiDB DevCon 2020. 本文基于Tianshuang ...

  8. vue2 父子组件传参 回调函数使用

    关键点: 父组件给子组件动态传参使用v-bind:属性key(多个单词用下划线拼接) 子组件接收父组件传参参数使用 props标签,+属性key多个单词用驼峰形式拼接) 子组件定义回调父组件函数 子组 ...

  9. Java System类loadLibrary()方法与示例

    系统类loadLibrary()方法 (System class loadLibrary() method) loadLibrary() method is available in java.lan ...

最新文章

  1. Ubuntu上Vim安装NERDTree插件操作步骤
  2. ELK教程1:ElasticSearch集群的部署
  3. java多递归调用_java – 递归调用方法
  4. Keras-训练可视化
  5. 触发Full GC的原因
  6. 航空机票预订c#代码_航空公司座位预订问题的C ++程序
  7. ORACLE字符集基础知识
  8. 哪款浏览器好用_超级实用!让你效率倍增的6款浏览器插件
  9. 将input file的选择的文件清空的两种解决方案
  10. 理解JavaScript函数(函数和对象的区别和联系)
  11. MySQL 存储过程的变量
  12. MFC对话框增加状态栏 以及设置状态栏滚动字幕
  13. CentOS 设置网络(修改IP修改网关修改DNS)
  14. Eucalyptus详解
  15. 常见测试概念-分级测试、灰度测试、AB测试
  16. 怎樣制作线段动画_线条动画 怎么制作随意运动的线条动画?线条动态视频如何制作?线条动画制作教程...
  17. 如何内置AdobeFlashPlayer.apk
  18. Oracle 一致性读
  19. Flask - bootstrap模板使用 和 模板继承
  20. EDG 到底是个啥?元宇宙呢?

热门文章

  1. python判断图片相似度_Python比较两个图片相似度的方法
  2. 官网python安装教程_Python安装教程
  3. 反射 数据类型_Java基础:反射机制详解
  4. java为什么使用封装_Java面向对象编程为什么需要封装
  5. Python 数据类型 布尔类型
  6. 程序员锁死公司服务器,导致600万元资金打水漂。网友神回复
  7. HTML5中Nav元素作用及应用场景知识点
  8. 常见的锁策略、synchronized中的锁优化机制
  9. php 实现二叉树的最大深度_python实现二叉树的遍历以及其他基本操作
  10. oracle数据库提示无监听,【原创】PL/SQL连数据库提示无监听程序