In workers2.properties I changed the uri to be different than the context..
and now I get a 404 using the new uri?  Does the URI have to be the same as
the Context?

 

I am trying to support the following url

 

http://localhost/newname/

 

with the following workers2.properties configuration:

 

[uri:/pbt/*]

info=Servlet examples, map requests for all servlets to Tomcat.

context=/pbt

 

[uri:/pbtzzz/*]

info=Servlet examples, map requests for all servlets to Tomcat.

context=/pbt

 

[uri:/newname/*]

info=Servlet examples, map requests for all servlets to Tomcat.

context=/pbt

 

When I click on the above link, I get a 404.

 

When I click on http://localhost/pbtzzz/ I get a Tomcat error 404 page

type Status report

message /pbtx

description The requested resource (/pbtx) is not available.

I'm not sure what to configure to map different to support this.. my long
term goal is to support multiple DNS name for one server.. mapping each DNS
name to a different tomcat application.. however in the short run.. I'll
settle for mapping of a single DNS name with different ports mapping to
different tomcat applications.  Should I be looking at creating HOST
components in Server.xml?

 

Any help would be greatly appreicated.  Thanks,

Moran Ben-David

Reply via email to