tp5 的项目 发布项目,需要配置虚拟主机吗?

浏览:3472 发布日期:2016/07/26 分类:ThinkPHP5专区 关键字: tp5 根目录 index.php 虚拟主机
tp5的访问目录在 public/index.php,发布项目,配置环境的时候,需要配置虚拟主机 VirtualHost 么?

比如:配置路径
<VirtualHost *:82>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/tp5/public
<Directory "/var/www/html/tp5/public">
Options Indexes FollowSymlinks Includes
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>

直接这么发访问项目有什么问题么?
http://localhost/tp5/public/index/user
访问 index模块下面的user控制器

我本地环境测试没问题,可以这么访问,但是据说这样访问有问题,不知道啥问题。。。。。。。。。。。。。。。?
最佳答案
评论( 相关
后面还有条评论,点击查看>>