Given the following virtualhost:
<VirtualHost *:80>
DocumentRoot "/var/www/dashboards/public/dist"
Servername local.dashboards
ServerAlias local.dashboards
Header add Access-Control-Allow-Origin: "*"
Header add Access-Control-Allow-Methods: "POST, GET, OPTIONS, PUT, DELETE, HEAD"
Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
Alias /api /var/www/dashboards/laravel/public
<Directory "/var/www/dashboards/public/dist">
Options MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/dashboards/laravel/public">
Options MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Location />
ProxyPass http://localhost:3030/
ProxyPassReverse http://localhost:3030/
</Location>
ErrorLog ${APACHE_LOG_DIR}/dashboards.error.log
CustomLog ${APACHE_LOG_DIR}/dashboards.access.log combined
</VirtualHost>
Can ahyone suggest why requests to local.dashboards/api are still being caught by the Location directive? I can confirm that the node server is catching the request to /api and returning a 404 page.