Laravel Forge - Subdomain links to different repository
Is it possible in Forge to subdomain that links to other Directory? For example, i have a main domain, domain.com links to repository #1 and subdomain, admin.domain.com links to repository #2 but i only have 1 ip from Digital Ocean.
yes it's possible. In Forge, when managing your server, there is a section to "Add a Site." Add your subdomain site...admin.domain.com and set the repository. Then to make it work, you will need to go to your domain regsitrar and set up a CNAME for the subdomain and point it to the main domain.
That should set it up.
Let me know if it works or if you run into an issue.
@ahuggins Thanks :)
Mine was in Route53 but I set the CNAME www.subdomain.example.com + CNAME www.subdomain.example.com to both point to www.example.com and set up the 2nd site in forge and all worked :)