I have a site that can be access in stage.mysite.com
and it has a subdomain profile.stage.mysite.com
but it displays the content of stage.mysite.com
when I try to access it.
in my server I have configured the hosting.
ServerAdmin webmaster@localhost
ServerName stage.mysite.com
ServerAlias *.stage.mysite.com
DocumentRoot /var/www/staging.mysite.com/public
in my routes.php this is the code.
Route::group(['domain' => 'profile.stage.mysite.com'], function()
{
Route::get('/', 'FrontendController@profile');
});
this I expect to be called. any ideas?
This is my entire routes.php
Route::get('testemail', function() {
return view('emails.new-group');
});
Route::get('decode', function(){
var_dump(json_decode('[{"key":"wifi","info":"dasdasd"}]'));
});
require 'routes_backend.php';
Route::controller('/app', 'UserController');
// homepage
Route::get('/', function () {
return view('homepage');
});
Route::group(['prefix' => 'test'], function() {
Route::group(['prefix' => '{company}'], function($company){
Route::get('tester', function($company){
return $company;
});
});
});
// subdomain
Route::group(['domain' => 'profile.stage.mysite.com'], function()
{
Route::get('/', 'FrontendController@dummyresort');
});