Tomcat virtual directory settings

  Abstract: Tomcat virtual directory settings 

  </ Td> </ tr> <tr> <td height="35" valign="top" class="ArticleTeitle"> tomcat installed, you only need to put the package $ Tomcat_Home $ / webapps under the can be directly used.    This will give webapps increasingly on the need for virtual directory: 

  1. Single application settings: 
  % Open Tomcat_Home% \ conf \ server.xml documents in the    And    Between the 


  Parameters: path that the browser input http://localhost:8080/site 
  DocBase that your package is the physical path, the default is $ absolute path Tomcat_Home $ / webapps 
  This will be set after the $ tomcat_home $ / conf / catalina / localhost directory site.xml generate a document, the contents of this document is to set up just the content. 

  <table Width="674" border="0"> <tr> <td width="400"> 2. Before we know through the $ tomcat_home $ / conf / catalina / localhost directory will generate the corresponding configuration file, Therefore, we can directly in the $ tomcat_home $ / conf / catalina / localhost directory write arbitrary configuration file from the file name, preferably with your web application to manage the same, such as the site.xml content Ibid. 



  3. Changes the entire root directory: 
  Find    UnpackWARs = "true" autoDeploy = "true"> 
  AppBase set to be the desired path (absolute path) 
  Emerging issues: Admission: http://localhost:8080/ not the default page of the reasons is of course changes the path.    Solution is very simple, the paper copy from, or then the original set as the default virtual path. 
  </ Td> <td width="264" align="right"> </ td> </ tr> </ table> 

  </ Td> </ tr> <tr> 

  ↑ Back 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags: ,

Releated Java Articles

Comments

Leave a Reply