Deploy a WAR as root in WildFly

using maven / manual deploy

Save your war with the name ROOT.war and deploy it, WildFly will configure it as root application.

using configuration files

In your [MAVEN_ROOT]/webapp/WEB-INF create jboss-web.xml and add:


serve index.html

To serve your main page update web.xml:


WebApp built by Marco using SpringBoot, Java 17, Mustache, Markdown and in Azure