Huang Gehua schrieb:
Always our project is run under the path with a context path ,For
example:
http://someHost:8080/prjectName/app
If i want use url like this [http://someHost:8080/app] to visit my app
,How to do?
Tomcat always defines a default context named "ROOT" under webapps
folder. Normally you can find the tomcat documentation in it.
You can override this default context.
<Host><Context path="" docBase="projectName" debug="0"/></Host>
i have try to build a Virtual host in my tomcat like this
<Host name="10.0.0.201" appBase="E:\project\cnbrn"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="." debug="0"/>
</Host>
i can visit my app use ugly url like this
http://someHost:8080/app?service=page&page=somePage
But i cant visit page use friendly url!!!!
How to resolve the problem???
Did you try "http://someHost:8080/somePage.html" ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]