1. Open your standalone.xml file and head to the undertow subsystem near the bottom of the file.
2. Delete the host mapper that maps requests to «/» to the «welcome-content» handler:
- <server name=»default-server»>
- <host name=»default-host» alias=»localhost»>
- <location name=»/» handler=»welcome-content»/> <!— Delete this line! —>
- </host>
- </server>
3. Delete the welcome-content handler itself since you’re not planning on using it. Since this is the only handler, you can delete the whole <handlers> element:
- <handlers>
- <file name=»welcome-content» path=»${jboss.home.dir}/welcome-content»/>
- </handlers>