title: Installation of Laravel - Vue SPA on apache web server
body: <p>I have three apps, one backend for api, second for frontend admin and third for frontend user.
  I use Laravel and Vue.</p>
  <p>Api is located on <code>/var/www/app/backend</code></p>
  <p>User app is located in <code>/var/www/app/frontend</code></p>
  <p>Admin app is located in <code>/var/www/api/frontend-admin</code></p>
  <p>Here is example of my virtual host config</p>
  <pre><code>
                  RewriteCond  %{DOCUMENT_ROOT}/backend/public/$1 -f
                  RewriteRule  ^/api/(.*)$ /backend/public/$1  [L,QSA]
                  
                  RewriteCond %{REQUEST_URI} ^/api/
                  RewriteRule ^(.*)$ /backend/public/index.php/$1 [L]
  
                  RewriteRule ^/admin/(.*$) /frontend-admin/dist/$1 [L,QSA]
  
                  RewriteRule ^(.*)$ /frontend/dist/$1 [L]
  
  </code></pre>
  <p>Api and users app works correctly, but problem is admin app.
  If I access from browser to <code>/admin</code> apache redirect me to admin app, but if I access <code>/admin/something</code> apache redirect me to user app...</p>