Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----- route.php
- Route::group(array('domain' => '{account}.domain.com'), function() {
- Route::get('/', function($account) {
- $user = Tbl_user::where('user_permalink',$account)->first();
- if (is_object($user)) {
- return View::make('subdomain.home');
- }
- return View::make('subdomain.notfound');
- });
- });
- ---------DNS management
- *.domain.com type A pointing ke IP server
- ---------vhost apache
- ServerAlias *.domain.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement