Hey, another question. I have a vps server that is hosting a laravel app, which works fine. No problems. Now I want to add a subdomain with another laravel app, but it says site can't be reached. I created a virtualhost for the subdomain outside of the /var/www/html folder to avoid conflicts and set the subdomain up in Godaddy. Did I miss a step?
Did you allow enough time for the DNS to propagate? GoDaddy is notoriously slow and could take a few days. Also, make sure your .env file is updated for APP_URL to refer to the subdomain. There are many tools to check your DNS to make sure it is correct.
@EJDELMONICO - I checked the .env file and the APP_URL shows http://localhost, perhaps you are right. So I would need to change the APP_URL to http://subdomain.domain.com with subdomain being my preferred sub domain and .domain.com being my domain. Do I have that right?
There are many steps to setting apache for multiple virtual hosts.
This tutorial is from Digital Ocean but the steps are for apache and apply anywhere. I've used it multiple times to get a new server working how I like.