We've got a restful api running using spring which generates HATEOAS links. When I run the service locally, they are generated fine, but on our server, which hosts tomcat behind apache which proxies the app to /api/ (locally it's just run on /), the urls are still generated like the app is run on /.
Is there any way to tell spring to use a base url when generating these?
mod_substitute
to regex all of the responses. – Errant/api/
, then apache should proxy to/api/
, not to/
on tomcat. – Errant