Laravel-如何在单个iis服务器上运行多个Laravel应用程序



我目前正在使用IIS服务器在laravel上运行一个网站。我想在同一时间在同一服务器中运行另一个应用程序(网站)。如何在同一台服务器上同时运行多个应用程序?

我正在使用 php 你能解释一下我如何在 php 中做到这一点吗?

您可以使用域路由,例如

Route::group(['domain' => 'exampledomain.com'], function() {
your routes for this domain here.
});
Route::group(['domain' => 'exampledomain2.com'], function() {
your routes for this domain here.
});`

最新更新