views:

112

answers:

1

Is it possible to set up multiple contexts using the same path? For example:

<Context docBase="/www/websites/site1/java/base" path="/base" reloadable="true"/>
<Context docBase="/www/websites/site2/java/base" path="/base" reloadable="true"/>
A: 

No. How would the container know which context should handle a request beginning with /base?

Jonathan Feinberg
That's my point. I have two sites that use the same path running on the same server. I have no control over the structure of the sites because they are maintained by a client. Until now, they have been content with only allowing one site to run at a time, but this is a major hassle. I understand why it doesn't work, but I need to know if there's a workaround.
ctn8iv
Are you talking about virtual hosts, where the server sniffs out the requested hostname and dispatches based on that? Anyway, it looks to me like this question belongs on ServerFault.
Jonathan Feinberg