Access Keys:
Skip to content (Access Key - 0)

一般的には、全てのWebアプリケーションの微調整は WEB-INF ディレクトリの jetty-web.xml ファイルで行うことができます。

Webアプリケーションの仮想ホスティング

本例題は、現Webアプリケーションを複数の仮想ホストに設定します。

  1. WebアプリケーションのWEB-INFディレクトリに jetty-web.xml を作成します。
  2. 以下のように jetty-web.xml にWebアプリケーションの設定を追加します:
    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. アプリケーションを.warファイルにパッケージして、ESB Mule WebContainerにデプロイします。
Adaptavist Theme Builder (3.3.2-conf2.10) Powered by Atlassian Confluence 2.10, the Enterprise Wiki.
Free theme builder license