Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can setup virtual hosts just like in Tomcat (in fact JBoss Web Service is sightly modified version of Tomcat).</p> <p>You can find proper in yours profile in the <code>deploy/jbossweb.sar/server.xml</code>. You hvae just define in that file virtual hosts by defining <code>Host</code> tag. </p> <p>Next you have to setup your application. Just create <code>jboss-web.xml</code> file and place it in application <code>WEB-INF</code> direcotry. In that file you have to bind your application with proper virtual host. It can looks like that:</p> <pre><code>&lt;jboss-web&gt; &lt;context-root&gt;/application_context&lt;/context-root&gt; &lt;virtual-host&gt;virtual_host&lt;/virtual-host&gt; &lt;/jboss-web&gt; </code></pre> <p>You can find some more info in that article: <a href="http://www.fusioncube.net/index.php/hosting-multiple-domains-with-jboss" rel="nofollow">Hosting Multiple Domains With JBoss</a></p> <p><strong>Install application from outside direcotry</strong></p> <p>You can add extra directory in which you can deploy your application (just like <code>deploy</code> directory).</p> <p>You have to edit <code>conf/bootstrap/profile.xml</code> - you can find in your profile. Find property name <code>applicationURIs</code> and add extra dir:</p> <pre><code>&lt;property name="applicationURIs"&gt; &lt;list elementClass="java.net.URI"&gt; &lt;value&gt;${jboss.server.home.url}deploy&lt;/value&gt; &lt;!-- Below new directory do scan by JBoss AS --&gt; &lt;value&gt;file:///nfs/applications&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; </code></pre> <p>More info you can find here: <a href="http://community.jboss.org/wiki/HowtodeploymyapplicationinanexternaldirectoryinJBoss-5" rel="nofollow">How to deploy my application in an external directory in JBoss-5</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload