Hello there. I've recently uploaded my website to a Virtual Private Server. The OS I'm currently using is - Ubuntu 18.04 with Webmin/Virtualmin/LAMP.
My domain points to the VPS ( although I haven't included /public nowhere in the pointing or in the domain. Do I have to? This /public folder is really giving me a hard time.. )
So, I've uploaded my project in the root directory and the 'PUBLIC' folder to 'public_html' directory.
So, when I try to access my website now I get - Error 403 - Access forbidden
Here is what I've changed in my files before uploading to the VPS:
APP_NAME=random APP_ENV=production APP_KEY= I haven't touched this. I'm using the same key as on my localhost. APP_DEBUG=false APP_URL=https://www.mydomain.com LOG_CHANNEL=daily
'name' => env('APP_NAME', 'random'), 'env' => env('APP_ENV', 'production'), 'debug' => env('APP_DEBUG', false), 'url' => env('APP_URL', 'https://www.mydomain.com'), 'asset_url' => env('ASSET_URL', null),
public_html -> ( Here I put all my folders/files from 'PUBLIC' without the folder itself ) ->index.php
require __DIR__.'/../app/vendor/autoload.php'; $app = require_once __DIR__.'/../app/bootstrap/app.php';
EDIT: I haven't changed anything in .htaccess .