title: Change WildFly 8 welcome-content to use myapplication.war
body: <p>When using WildFly 8, pointing a browser at <code>localhost:8080</code> results in the default <code>welcome-content</code> page being displayed.</p>
  
  <p>I want to change this behaviour so that <code>myapplication.war</code> is displayed instead.</p>
  
  <p>My <code>standalone.xml</code> file currently contains the following default configuration:-</p>
  
  <pre><code>&lt;server name="default-server"&gt;
    &lt;http-listener name="default" socket-binding="http"/&gt;
    &lt;host name="default-host" alias="localhost"&gt;
      &lt;location name="/" handler="welcome-content"/&gt;
      &lt;filter-ref name="server-header"/&gt;
      &lt;filter-ref name="x-powered-by-header"/&gt;
    &lt;/host&gt;
  &lt;/server&gt;
  &lt;handlers&gt;
    &lt;file name="welcome-content" path="${jboss.home.dir}/welcome-content"/&gt;
  &lt;/handlers&gt;
  </code></pre>
  
  <p>I have found some posts on the JBossDeveloper Forums that suggest the following:-</p>
  
  <pre><code>&lt;host name="default-host" alias="localhost" default-web-module="name-of-your.war"&gt;
  </code></pre>
  
  <p>Just adding the <code>default-web-module</code> parameter doesn't seem to work as the <code>welcome-content</code> page is still displayed.</p>
  
  <p>Removing the <code>location</code> and <code>filter-ref</code> items from the <code>host</code> section stops the <code>welcome-content</code> page being displayed, but results in an HTTP <code>404 - Not found</code> error.</p>
  
  <p>Can anyone tell me how to resolve this please?</p>