An apiman user recently asked me how they could change the root context of apiman-gateway from
/apiman-gateway/ to something else, for instance
|If you’re using a load balancer or some other mapper, just skip to the Alternatives section or read the apiman production guide.|
$ unzip apiman-gateway.war -d /tmp/apiman-gateway
/tmp/apiman-gateway/WEB-INF/jboss-web.xmlto be to your new preferred context, e.g.
Repack the war.
$ zip -r apiman-gateway.war /tmp/apiman-gateway/META-INF /tmp/apiman-gateway/WEB-INF
Replace the existing deployment.
apiman.propertiesfile and set
apiman-gateway.public-endpoint=<new public endpoint>. 
When you publish an API to the gateway setup you modified, you should see something like this in the UI:
You can, of course, just set mappings on your load balancer (or some other technique external to apiman) if you want to avoid fiddling with the deployments. Even then, you’ll still probably want to set
apiman-gateway.public-endpoint to report a sensible value for your setup.
One final note: you can set these options via Java’s system properties, too
$ ./bin/standalone.sh -Dapiman-gateway.public-endpoint=https://localhost:8443/i-love-apiman/