laravel 5 subdomain not working in live

此生再无相见时 提交于 2019-12-12 03:38:29

问题


I have a site that can be access in stage.mysite.com now I want to have a subdomain for another page and it can be access at profile.stage.mysite.com.

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');
});

but when I tried to access http://profile.stage.mysite.com returns Server not found error. any ideas how to access my static page into subdomain?

来源:https://stackoverflow.com/questions/38100821/laravel-5-subdomain-not-working-in-live

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!