linux - Tomcat6 -> how to put a project into the root folder? -


i have tomcat6 server on linux server. structure of webapps directory is:

  • examples
  • host-manager
  • manager
  • root
  • sample

i have web application running on localhost on tomcat. created war file myproject.war , put webapps directory. restarting tomcat server, war extracted , have structure:

  • examples
  • host-manager
  • manager
  • myproject
  • root
  • sample

calling url http://mysubdomain.mysite.com:8080/ tomcat start page with

if you're seeing page web browser, means you've setup tomcat successfully. congratulations!.

calling http://mysubdomain.mysite.com:8080/myproject/ page of project.

what want, can access project url http://mysubdomain.mysite.com:8080/ , not http://mysubdomain.mysite.com:8080/myproject/

how can this?

best regards.

update have in server.xml:

<host name="localhost"  appbase="webapps" unpackwars="true" autodeploy="true" xmlvalidation="false" xmlnamespaceaware="false">     <context docbase="myproject" path="/" /> </host> 

i did on path empty string , / , restart tomcat. both not work. main directory shows me tomcat start page instead of project. project reachable ...:8080/myproject/

delete root folder, rename myproject.war root.war , restart.

you can adding following line inside <host> entry of /conf/server.xml

<context docbase="myproject" path="" /> 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -