Laravel | Speed difference between vhost and php Server

丶灬走出姿态 提交于 2020-12-13 03:21:29

问题


I made a vhost for my local Laravel installation. The thing is, that the variation with 127.0.0.1:8000 is so much faster than the "example.local"-vhost which points to the public/ directory of Laravel. Of course the vhost uses Apache.
Why is there such a speed difference? While the IP version has a lighthouse speed score of 100 the vhost has only 72 which is a significant difference. Can anyone help me with this? How do I get the same performance?

来源:https://stackoverflow.com/questions/60268611/laravel-speed-difference-between-vhost-and-php-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!