caili_ci 发表于 2015-12-11 20:27:13

base_url 与 web根目录 之间的关系

前提条件: 比如 http://localhost/index.php访问首页面。 也就要求index.php要在web服务器(比如nginx)的根目录下。 在nginx.conf里面设置 root:   D:/wnmp/wwwroot/localhost ; 同时,设置base_url:http://localhost. 作为项目uri的基础。

结果:base_url实际路径就是 D:/wnmp/wwwroot/localhost。   大家可以讨论对不对。
页: [1]
查看完整版本: base_url 与 web根目录 之间的关系