Using Nginx instead of Apache and creating a subdomain 'api' for the REST api.
Everything else will be redirected do the frontend app.