2012-04-02 10 views
0

サーバ上のIPアドレスではなく、別名をバインドしてアプリケーションを実行しようとしています。だから私は代わりに172.19.20.xxx:8555/helloworld私は下の私のプロジェクトでのjboss-web.xmlの追加のhelloworld.businessname.com:8555/helloworldに私のアプリにアクセスしたいWEB-INFJBoss 7仮想ホストのページが見つかりません

<jboss-web> 
    <virtual-host>helloworld.businessname.com</virtual-host> 
</jboss-web> 

私はそれが見つからない言うhelloworld.businessname.com:8555/に行くとき、私は私のstandalone.xml

<subsystem xmlns="urn:jboss:domain:web:1.1" native="false" default-virtual-server="default-host">  
    <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/> 
     <connector name="https" protocol="HTTP/1.1" scheme="https" socket- binding="https" enable-lookups="false" secure="true"> 
     </connector> 
     <virtual-server name="default-host" enable-welcome-root="true"> 
      <alias name="localhost"/> 
      <alias name="example.com"/> 
     </virtual-server> 
    <virtual-server name="helloworld.businessname.com" default-web-module="helloworld"> 
      <alias name="helloworld.businessname.com"/> 
     </virtual-server> 

で仮想ホストのタグを編集しました。

私はそれを感謝します。

<jboss-web>  
    <context-root>/</context-root> 
    <virtual-host>helloworld.businessname.com</virtual-host> 
</jboss-web> 

セットのhostsファイル:

答えて

0

standalone.xmlはOK

セットのjboss-web.xmlのようです(C:\ WINDOWS \ system32にdrivers \ etcに\ホストまたは/ etc/hostsファイル\)サーバー上のように:

standalone.bat -b 0.0.0.0 

127.0.0.1 helloworld.businessname.com 

としてサーバーを実行します

と展開します。

関連する問題