Configuration of web server for Laravel?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
14 views
Friends, I can't seem to find the info how and where to correctly configure the web sever under laravel. The problem is this: I have all directories accessible from the browser, and must be only public, and of {{ url(") }} doesn't work because clearly there is no way public. It would be possible to solve the problem root .htaccess, but I would like to see the correct option.
by | 14 views

3 Answers

0 like 0 dislike
Change DocumentRoot in Apache or root in nginx.
by
0 like 0 dislike
I have all directories accessible from the browser, and should only be public

Because the web root directory should be public, not the project root
by
0 like 0 dislike
Resolved the issue root .htaccess
RewriteEngine on RewriteRule (.*) /public/$1 [L]
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 12, 2019 by Mo1she
110,608 questions
257,186 answers
0 comments
35,430 users