Spring supports the environment variable server.contextPath which lets the application run under a different context root (e.g. "/gitanizer" instead of "/").
When using this configuration, the login does not work anymore, since the Spring Security configuration redirects to "/do-login" (see GitanizerSecurityConfiguration). Removing the slash doesn't work, though.