1

netbeans では、プロジェクト名を右クリックし、プロパティ > 実行 > を選択してコンテキスト パスを変更できます。cPanel を使用してアクセスできるサーバー上の tomcat のコンテキスト パスを変更するにはどうすればよいですか?

4

1 に答える 1

3

Add root.xml file in $CATALINA_BASE/conf/[enginename]/[hostname]/ and add this as :

 <Context 
   docBase="/opt/mywebapps/<yourApp>" 
   path="" 
   reloadable="true" 
  />

For more detail you can use the Apache context configuration link : http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

于 2013-05-09T05:24:44.817 に答える