0
我有Digital Ocean的服务器。我使用Serverpilot。我如何使用laravel 5.3使用域名路由?Laravel + Digital Ocean + Serverpilot =域路由
Rweb例如:
Route::group(['domain' => 'admin.developer.app'], function() {
Route::get('/', function() { return view('dash') });
});
Route::group(['domain' => 'department.developer.app'], function() {
Route::get('/', function() { return view('dash') });
});
谢谢回答。 DNS记录; http://prntscr.com/djc6tv .htaccess文件; http://prntscr.com/djc77n –
这两个看起来不错,它应该现在工作。在您的VirtualHosts配置中,确保您的Web服务器侦听所有子域上的请求。之后,重新启动您的网络服务器。 –
我检查了两次。但它仍然不起作用。 –