Dave
Dave

Reputation: 21

Disable Jboss wildlfy welcome content

I am running wildfly using domain.sh and am unable to disable the Wildfly welcome content even after deploying a ROOT.war with joss-web.xml having context-root / context-root

Upvotes: 2

Views: 8189

Answers (2)

Dinushika Rathnayake
Dinushika Rathnayake

Reputation: 419

I disabled welcome-root and welcome-content in wildfly for web application by removing the following sections in the ..\standalone\configuration\standalone.xml file:

  • remove location

    <location name="/" handler="welcome-content"/>
    
  • remove handler

    <handlers>
         <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
    </handlers>
    

Upvotes: 1

dds
dds

Reputation: 2415

In domain/configuration/domain.xml:

Remove <location name="/" handler="welcome-content"/>

Remove

<handlers>
   <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>

Upvotes: 6

Related Questions