A
A
Alexander Ivanov2018-02-03 21:18:46
Apache HTTP Server
Alexander Ivanov, 2018-02-03 21:18:46

How to remove public laravel in VirtualHost (does not see internal files)?

Windows Apache
Configured Apache like this

<VirtualHost laravel>
  DocumentRoot "C:/www/OpenServer/domains/laravel/public"
  DirectoryIndex index.php
  <Directory "C:/www/OpenServer/domains/laravel/public">
  Allow from all
  </Directory>
</VirtualHost>

So .htaccess
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

The problem is that js files, pictures and others are not visible. the browser does not see them, but everything else works
. What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorca, 2018-02-03
@cimonlebedev

5a75fe88ed0dc366637759.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question