1 Reply Latest reply on Jul 17, 2014 11:13 AM by scrublet

    how to disable welcome-root / welcome content in wildfly

    francis_free

      I need clear steps on how to disable wildfly welcome-root/ welcome content

        • 1. Re: how to disable welcome-root / welcome content in wildfly
          scrublet

          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>
          
          1 of 1 people found this helpful