简体   繁体   中英

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:

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. If you want to run the in parallel, you need a webserver like 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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