简体   繁体   English

如何在多个Laravel项目的同一端口上运行“ php artisan serve”

[英]How to run “php artisan serve” on same port for multiple Laravel projects

as I see its not possible to serve two laravel projects on same port for example: 因为我看到不可能在同一端口上服务两个laravel项目,例如:

php artisan server --port=80 --host=somedomain.com
php artisan server --port=80 --host=anotherdomain.com

if there is any solution for this issue, tell me that. 如果有解决此问题的方法,请告诉我。

regards 问候

php artisan serve will start a normal webserver for just this project. php artisan serve将为此项目启动普通的网络服务器。 If you want to run the in parallel, you need a webserver like nginx oder apache. 如果要并行运行,则需要像nginx oder apache这样的网络服务器。 The you create a config for every project and point to the public folder. 您将为每个项目创建一个配置,并指向公用文件夹。 All projects are accessible via port 80, but with a different domain. 所有项目都可以通过端口80访问,但是具有不同的域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM