I added a and cname for my domain and pinging it returns forge server IP.
I added two sites, one for nuxt (which i didn't yet configured, just added as site and connected to git)
Other one for laravel api.
I removed default site.
How can I see these two with IP address at least? When I open ip address only I can see is 404 not found... Don't even know how to navigate to these 2 sites by URL if possible?
Laravel Forge sets up a nginx file that only works based on the domain. So if you for example create a site called example.com then you can only access it through that name.
If you run multiple domains, nginx can't know which site you intent to go to so it returns nothing. Both sites run under the same IP because it's the same server. So you need to be explicit by using the domain name.
If the domain name doesn't work, you need to update your DNS config so that it points to the correct IP of the server.
yes brother i named the site api.example.com then in digitalocean im adding api.example.com domain with this "@" A record to the server ip address
but the site wont show up