title: Vue deploy with Apache: routes don't work in history mode
body: <p>I'm having trouble deploying a vue application (no database nor server-side code) with Apache (HTTPs too). This is my .conf file:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerAdmin myemail@gmail.com
  ServerName mydomain.me
  ServerAlias www.mydomain.me
  DocumentRoot /var/www/mydomain.me/dist
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  
  &lt;Directory /var/www/mydomain.me/dist&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
  &lt;/Directory&gt;
  
  RewriteEngine on
  RewriteCond %{SERVER_NAME} =mydomain.me [OR]
  RewriteCond %{SERVER_NAME} =www.mydomain.me
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>When I access mydomain, the frontpage is correctly loaded (the index.html built with <code>npm run build</code>), however none of the routes work (i.e. /portfolio).</p>
  
  <p>If, however, I switch my router mode from <code>history</code> to <code>hash</code>, things work (<code>/#/portfolio</code>), but I want to keep <code>history</code> mode active.</p>
  
  <p>Thanks in advance!</p>