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

[HELP] 部署linux服务器

[复制链接]
发表于 2017-2-22 15:31:21 | 显示全部楼层 |阅读模式
在本机部署了网页,config.php中这样配置$config['base_url'] = 'http://localhost/estore/';
在routes.php中这样配置$route['default_controller'] = "welcome";,
在本机URL中输入http://localhost/estore ,一切正常。
部署到阿里云linux服务器上config.php中修改成了 $config['base_url'] = 'http://www.gaoshanvalve.com/estore/';其他没动。
linux服务器上的主页设置的是index.php,死活访问不了。
能否指教一下,多谢。

发表于 2017-2-22 18:21:17 | 显示全部楼层
什么是访问不了?截图看一下。
 楼主| 发表于 2017-2-22 21:53:35 | 显示全部楼层
Hex 发表于 2017-2-22 18:21
什么是访问不了?截图看一下。

地址栏里输入  http://www.gaoshanvalve.com/
Forbidden   403 错误

You don't have permission to access / on this server.
发表于 2017-2-22 22:42:57 | 显示全部楼层
large-tree 发表于 2017-2-22 21:53
地址栏里输入  http://www.gaoshanvalve.com/
Forbidden   403 错误

你要这样访问才可以 http://www.gaoshanvalve.com/estore 你不能访问根目录 因为你的 CI 没在根目录。这个问题和 CI 无关,跟 PHP 也没关系,是服务器的问题。

本版积分规则