Apache Alias forbidden

I’m currently in the process of trying to launch a new version of a web platform in a subfolder so it can co-exist with the existing platform.

e.g.

https://subdomain.example.com/ <– Current Version

https://subdomain.example.com/v3/ <– New Version

The current version is an angularJS app and the new version is Vuejs. The platform is hosted on AWS with elastic beanstalk.

My apache config right now is

    <VirtualHost *:80>
       DocumentRoot "/var/app/current/current-app/releases/current"
        <Directory "/var/app/current/current-app/releases/current">
         Options Indexes FollowSymLinks MultiViews
         AllowOverride All
         Require all granted
         RewriteEngine On
         RewriteCond %{HTTP:X-Forwarded-Proto} !https
         RewriteCond %{HTTP_USER_AGENT} !^ELB-HealthChecker.*
         RewriteRule . https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

         RewriteCond %{REQUEST_FILENAME} .html$ [OR]
         RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
         RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
         RewriteRule ^ - [L]
         RewriteRule ^ /index.php
        </Directory>

        Alias "/v3" "/var/app/current/new-app/v3/"
        AliasMatch "^/v3/(.*)$" "/var/app/current/new-app/v3/$1"
        <Directory "/var/app/current/new-app/v3">
           Options Indexes FollowSymLinks MultiViews
           AllowOverride All
           Require all granted
           RewriteEngine On
           RewriteBase /
           RewriteCond %{HTTP:X-Forwarded-Proto} !https
           RewriteCond %{HTTP_USER_AGENT} !^ELB-HealthChecker.*
           RewriteRule . https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

           RewriteRule ^index.html$ - [L]
           RewriteCond %{REQUEST_FILENAME} !-f
           RewriteCond %{REQUEST_FILENAME} !-d
           RewriteRule . /v3/index.html [L]
        </Directory>
      </VirtualHost>

The new app compiles into a folder called v3.

Occasionally when I visit the https://subdomain.example.com/v3/ i am presented with the new version of the web-app. Other times I’m given a 403 error.

Any time I try to go to a route that needs to be handled with the vuejs router (v3) directly, apache returns a 403. For example https://subdomain.example.com/v3/auth/login.

However, visiting /v3/ itself will forward me to /v3/auth/login and display the correct thing.

Another issue is that the rewrite for https is no longer functioning and allowing non-https connections.

Any help here would be massively appreciated!

Source: New feed
Source Url Apache Alias forbidden