用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1887|回复: 0
收起左侧

[Web] base_url 与 web根目录 之间的关系

[复制链接]
发表于 2015-12-11 20:27:13 | 显示全部楼层 |阅读模式
前提条件: 比如 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。   大家可以讨论对不对。

本版积分规则