Access Keys:
Skip to content (Access Key - 0)
community header community tab mule tab ibeans tab muleforge tab

In general, fine tuning of every web application can be done in jetty-web.xml file placed in WEB-INF directory.

Enabling virtual hosts for a webapp

This example explains how to assign current webapp to a number of virtaul hosts and specific context path.

  1. Create a jetty-web.xml in WEB-INF directory of your webapp.
  2. Put in jetty-web.xml your specific configuration like listed below:
    jetty-web.xml
    <?xml version="1.0"?>
    <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
    
    <Configure class="org.mortbay.jetty.webapp.WebAppContext">
          <Set name="contextPath">/mycontext</Set>
          <Set name="virtualHosts">
            <Array type="java.lang.String">
              <Item>333.444.555.666</Item>
              <Item>127.0.0.1</Item>
              <Item>www.blah.com</Item>
              <Item>www.blah.net</Item>
              <Item>www.blah.org</Item>
            </Array>
          </Set>
    </Configure>
  3. Package your application in .war file and deploy it in Mule WebContainer. Thats it.
Adaptavist Theme Builder (3.3.3-conf210) Powered by Atlassian Confluence 2.10, the Enterprise Wiki.
Free theme builder license