网站还在搞,就本地搞了虚拟主机
开启xammp的Apache。打开C:\Windows\System32\drivers\etc下的hosts文件,在文件的最底部添加你需要的虚拟域名
打开xammp的安装位置(我的是E:\xampp\apache\conf),打开E:\xampp\apache\conf的httpd.conf,找到其中<Directory /></Directory>,修改为
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
</Directory>
然后打开E:\xampp\apache\conf\extra下的httpd-vhosts.conf的编辑如下
<VirtualHost *:80>
DocumentRoot "E:\git\Pinocchio\Pinocchio\public"
ServerName pinocchio.website
ErrorLog "logs/laravelapp-error.log"
CustomLog "logs/la