php - Only getting list of files on /var/www/html folder -
i'm trying host laravel app on ubuntu machine added laravel app /var/www/html folder root directory domain on apache conf file. when access domain, list of files in /var/www/html folder. when insert index.html file test, works when access domain. can happening?
laravel served out of index.php
inside public
folder.
you getting list of files because domain pointing var/www/html
contains root of laravel application , not public
directory contains index.php
.
if go www.yourdomain.com/public
find application served correctly if apache set recognize index.php
should be.
to fix don't need use public inside url can edit /etc/apache2/sites-available
point directory /var/www/html/public
, able access through www.yourdomain.com
.
Comments
Post a Comment