Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I access the same Web App in Tomcat using multiple paths?

Status
Not open for further replies.

Shepshed

Programmer
Feb 18, 2004
1
GB
I want to be able to access the same web application using multiple paths, but all containing the word "forums". I need it to be only 1 web app because I have subsites accessing the same pages and data and so if I create multpile web apps the cache of each becomes out of sync.
The two paths forwarded by my Apache Web Server to Tomcat are:

/forums

/iiie/forums/

My current context tag in server.xml is below. This obviously maps fine for /forums. Is there a wild card character which states that any path containing "forums" should use this web app?

If not can anyone recommend another way around this?

<Context path=&quot;/forums&quot; docBase=&quot;c:\ debug=&quot;0&quot; reloadable=&quot;true&quot; crossContext=&quot;true&quot;>

<Logger className=&quot;org.apache.catalina.logger.FileLogger&quot; prefix=&quot;forums-&quot; suffix=&quot;.log&quot; timestamp=&quot;true&quot;/>

</Context>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top