Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple domains to one site in Laravel Forge

Is it possible to have multiple top-level-domains point to the same site? .com/.net/.eu etc...

I created a site in Laravel Forge and you have to tell him the domain your site is going to be on. This works for the .com domain, but how about the other tld's? Do I have to create multiple sites, Do I have to change it on the server itself (DNS) or are their any other methods?

like image 828
AgeDeO Avatar asked Aug 12 '16 08:08

AgeDeO


1 Answers

I solved it myself:

  1. Create sites for your new tld domains
  2. Click the edit button 'pencil' next to your created site
  3. Click the edit file(s) button
  4. Click Edit NGINX configuration
  5. Change the following line: root /home/forge/****/public; to the path of the main domain.
like image 198
AgeDeO Avatar answered Oct 05 '22 14:10

AgeDeO