本地项目设置访问域名
打开hosts文件:
127.0.0.1 tp5.com
127.0.0.1 filesystem.com
apache下配置
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/xampp/htdocs/tp5/public"
ServerName tp5.com
ErrorLog "logs/tp5.com-error.log"
CustomLog "logs/tp5.com-access.log" common
</VirtualHost>
重启服务器就可以啦。浏览器输入tp5.com