I might have overlooked something, but I did not see anything explicitly
clear in the tomcat documentation in how to configure catalina to handle
third level domain names. I have them configured in my DNS, now I just have
to get catalina to differentiate between them.
For example, I have a domain name: "domainname.org" and I want to add a
second third level domain "news.domainname.org" and simply have catalina
*forward* the request for "news.domainname.org" to a servlet that is
currently running on the server. This is currently at "domainname.org/news".
So basically what I need to do is get "news.domainname.org" to map to
"domainname.org/news," which is currently in place.
This leads me the following questions:
1) I've been reading through other forums and postings, but nothing is said
about whether or not this is possible without using Apache? I would prefer
not to, as I do not have any static html pages to serve. Additionally there
is an overhead associated with learning and configuring Apache that would
very much like to be avoided if possible.
2) I think this can be done with a new host declaration, but from what I
understand that will just redirect it to the new context path specified in
that host declaration, which would then load - presumably the index.html in
that directory? If this is correct, then how would I get it configured to
send it to a servlet to handle?
3) Assuming that it does indeed get forward to the directory specified in
the new context path, then I could get around the "forwarding to a servlet"
problem by creating a index.jsp file in that directory that will forward it
for me. I believe this to be a suitable work around?
Any help is GREATLY appreciated.
Regards,
Richard Spackmann
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)