Installing Laravel application on main domain (without using subdomains)
Hi, I am new to Laravel so I am sorry for the question but, I have seen many inquiries on how to set up a subdomain. I have successfully setup my subdomain but I wonder if is possible to, instead of accessing my app through a subdomain.domain.com, to access my application as domain.com. I am using DigitalOcean (Ubuntu). How would one do that? Below is my 000-default.conf file:
I've got a simple setup to run a catchall on my main domain (subdomains are elsewhere setup). Laravel public folder already has a .htaccess that specifies the rewrite conditions, so that should be enough
(Remember to enable mod-rewrite in apache2 if you're using that and haven't already:)
Thank you very much, excellent suggestion! It was not working at the beginning, maybe it had something to do with the SSL certificate that I installed previously. so I had to save the new host block in a new separate conf file. Then I disable the default file with the following:
Now is working but the subdomain is also working, so both: domain.com and myapp.domain.com are pointing to my app. Now I have to figure it out how to disable the "myapp.domain.com"...