A
A
Andrey Suha2019-10-01 10:07:21
Apache HTTP Server
Andrey Suha, 2019-10-01 10:07:21

How to form the path correctly?

Apache is installed locally and Lara works correctly, moved the site to vps and the asset helper adds public to the path.
virtual host config

<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerAdmin [email protected]
    ServerName site.com
    DocumentRoot /var/www/site/public
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    <Directory "/var/www/site/public/">
      AllowOverride All
      Require all granted
    </Directory>
SSLCertificateFile /path/to/ssl
SSLCertificateKeyFile  /path/to/ssl
Include  /path/to/ssl
</VirtualHost>
</IfModule>

htaccess to public standard

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Suha, 2019-10-01
@andreysuha

It turned out to be a cache issue sudo php artisan view:clear helped

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question