I have an instance (Ubuntu 14.04) in Amazon EC2
I have 3 domain names (in Big Rock)
like www.mycompany.com
sub1.mycompany.com
sub2.mycompany.com
And 3 Databases
like mycompany
sub1
sub2
I have to redirect the domain name as
www.mycompany.com : Home page of db-mycompany
sub1.mycompany.com : Home page of db-sub1
sub2.mycompany.com : Home page of db-sub2
*redirect with out uname or pwd (direct to home page)