Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ezhov-da/32e54bf31c0b81432cb9f9627c8ae2bc to your computer and use it in GitHub Desktop.
Save ezhov-da/32e54bf31c0b81432cb9f9627c8ae2bc to your computer and use it in GitHub Desktop.
изменение корневого приложения
https://stackoverflow.com/questions/32241906/how-to-deploy-war-file-in-root-context-to-wildfly-ver-9-0-1
To override the welcome webapp with Wildfly, you need to create a jboss-web.xml in the WEB-INF of your webapp with this content:
<jboss-web>
<context-root>/</context-root>
</jboss-web>
But if you try to access to the root directory (e.g. http://localhost:8080/) you will still have the default welcome content. To remove it, you just need to rename the directory welcome-content in the Wildfly directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment