部署linux服务器
在本机部署了网页,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,死活访问不了。
能否指教一下,多谢。
什么是访问不了?截图看一下。 Hex 发表于 2017-2-22 18:21
什么是访问不了?截图看一下。
地址栏里输入http://www.gaoshanvalve.com/
Forbidden 403 错误
You don't have permission to access / on this server.
large-tree 发表于 2017-2-22 21:53
地址栏里输入http://www.gaoshanvalve.com/
Forbidden 403 错误
你要这样访问才可以 http://www.gaoshanvalve.com/estore 你不能访问根目录 因为你的 CI 没在根目录。这个问题和 CI 无关,跟 PHP 也没关系,是服务器的问题。
页:
[1]