本问题应该是关于域名重定向的问题,我从码云上clone下代码后,只更改了httpd.conf里面的配置目录,一直没有成功,最后在网上查看虚拟目录配置方法后成功了。修改httpd.conf里的
Include conf/extra/httpd-vhosts.conf(去掉前面的#号)
然后在extra目录下的httpd-vhost.conf文件中后面加上
<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "E:/StudyForJob/environment/apache/Apache24/htdocs/yjhshop/ape_plan/public"
ServerName www.ape.com
ServerAlias ape.com
<Directory "E:/StudyForJob/environment/apache/Apache24/htdocs/yjhshop/ape_plan/public">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
然后TP5成功重定向!!!
网友评论