S
S
Sergey Burduzha2020-01-05 11:41:31
Apache HTTP Server
Sergey Burduzha, 2020-01-05 11:41:31

Why does the site open on laravel?

Good afternoon.
I work under ubuntu.
In the directory /etc/apache2/sites-available created a configuration file laravel.loc.conf

<VirtualHost *:80>
ServerName laravel.loc
ServerAlias www.laravel.loc
ServerAdmin [email protected]
DocumentRoot /var/www/laravel.loc/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Connected the site through a2ensite, and restarted apache.
Now when I open the page in the browser, I see all the contents of site
5e11a10a1eb9c587621824.png
A, when I go to the public folder, I get the error
Page is not available.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikkko, 2020-01-05
@Mikkko

Change your DocumentRoot to:
DocumentRoot: /var/www/laravel.loc/public

M
MouseZver, 2020-01-07
@MouseZver

it might be right

S
Sergey Burduzha, 2020-01-07
@serii81

I solved the problem by installing laradoc and then laravel in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question