I have finished my beautiful Laravel app let's call it Beautiful
on my development PC. So its now time to put in a productive environment.
We're using Apache, and I've been told that my app must be under /var/apache/html/projects/Beautiful
, so I transferred the app (using Git), ran composer and npm, and such. I already changed the .env file so it connects to the production postgres database and such.
Even the index page is working in http:://ourserver/Beautiful/public
and here it comes my problem.
What else do I have to configure in order that it runs without the /public
? The problem is that obviously all routes doesn't work with public, for example http://ourserver/Beautiful/public/login
doesn't work, or any other.
Is it a thing of Apache's configuration, or there's something in Laravel I can do?
I know the correct thing to do would be to create a virtual host in Apache that points to Beautiful.ourserver.com, but I have no control on the DNS, all I can do is work from ourserver.