When the server tries to connect a css file or js on the path http://example.com/css/app.css, I get 404 standard files from the box. The reason is probably that laravel is trying to go through the css controller and it is not registered in router.php. error RouteCollection.php line 145 when directly opening the css file

apache settings

<Directory /home/h63546/data/www/example.com> FCGIWrapper /home/h63546/data/php-bin/php .php FCGIWrapper /home/h63546/data/php-bin/php .php3 FCGIWrapper /home/h63546/data/php-bin/php .php4 FCGIWrapper /home/h63546/data/php-bin/php .php5 FCGIWrapper /home/h63546/data/php-bin/php .phtml Options +ExecCGI </Directory> <Directory /home/h63546/data/www/*.example.com> Options +ExecCGI FCGIWrapper /home/h63546/data/php-bin/php .php FCGIWrapper /home/h63546/data/php-bin/php .php3 FCGIWrapper /home/h63546/data/php-bin/php .php4 FCGIWrapper /home/h63546/data/php-bin/php .php5 FCGIWrapper /home/h63546/data/php-bin/php .phtml </Directory> <VirtualHost 91.200.40.54:8080> ServerName cosmetolog.net.ua DocumentRoot /home/h63546/data/www/example.com SuexecUserGroup h63546 h63546 CustomLog /home/httpd-logs/example.com.access.log combined ErrorLog /home/httpd-logs/example.com.error.log ServerAlias *.example.com www.example.com ServerAdmin ScriptAlias /cgi-bin/ /home/h63546/data/www/example.com/cgi-bin/ AddHandler fcgid-script .php .php3 .php4 .php5 .phtml VirtualDocumentRoot /home/h63546/data/www/%0 </VirtualHost> 
  • from the previous question: show what is written in the apache settings for this server. Complete the question - zhenyab
  • @zhenyab updated the question - Shadow33
  • DocumentRoot should point to public and will look like this /home/h63546/data/www/example.com/public - zhenyab
  • @zhenyab did not solve the problem. All results are the same - Shadow33
  • one
    and after changes, apache restartanuli? If, yes, you still need to configure everything. Everything is written in the Laravel documentation, and if you do everything according to the documentation, there is no problem. - zhenyab

0