-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Chuck,
On 9/13/13 4:38 PM, Caldarale, Charles R wrote: >> From: Chris Arnold [mailto:carn...@electrichendrix.com] Subject: >> Multi-URL Access 1 Webapp > >> Tomcat 7.0.3 i believe > > Not bloody likely - 7.0.3 was never released. If you really are > running on 7.0.3, you need to upgrade ASAP. > >> We have a web app that you access from http://domain.tld/share. >> What we want to do is have clients access the same web app only >> from http://share.domain.tld. The domain part of that URL will >> change per client. So, some will get to it like >> http://share.domain1.tld and some will get to it from >> http://share.domain2.tld. Can tomcat do this or should i take a >> different approach? > > Assuming you get the various names registered in the appropriate > DNS boxes, yes. Read the Tomcat doc and wiki, especially these > bits: http://tomcat.apache.org/tomcat-7.0-doc/config/host.html > http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts > > You can also use a filter to forward requests to the desired URL: > http://tuckey.org/urlrewrite/ +1 I would say that it would be helpful to know how your webapp detects which "client" is being accessed. Are you sniffing that from the URL in a single webapp, or are you configuring a single webapp for each client (i.e. multiple webapps concurrently deployed). If you are doing the former, then it shouldn't be tough to just sniff a different part of the URL to determine the client. If the latter, then you will either have to re-code your webapp to do URL-sniffing, or just deploy your webapps into individual <Host>s with separate appBase directories. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSM3ttAAoJEBzwKT+lPKRYteQQAKK+2ww9wm5YtxST34SU7kW+ ppwzfY3bif1VNcpYW+H69my4vEFFiwJn6ZTx+GVLtL17445CmkXFh6nMtzLG2e6i 8CDo6ZJpeYbTVvIPyWzcLxDpmJfHVHZb9HZ0FV8aJK0QIxU7HxQGqzAKp8vn6eHw Y1R/z1wnhDm62ofYpgC4IQzB6St9U1AqoGdoBxtERrO6uR9g7mv6fehLhBvVbWis u7sIdfBYhk57mxCQojX9EZTLIsXPRBZ7+qXXLCZtYn9EigjOkD13XIZNT0Izrlqv WnXPMhEM9B16Q/taq53gWHP+zlOTpZydw5sIy+7UUoFWZMjAVxbm3f4l0qLyaLCu CA8NWM66xZ2fnic/+UUtL+QDvZEUSUTSAtoMcnt1zqaLDJJPR6FcxxGKa9n6Ppn1 ItF/bDGHgaYZfIr2uV3uEKrGEWCeOYGHz8O54DU7eNrz+Ck7B9Ilh+0v6a50wXMr mlLDdMmZ+Y/StmyfuylNJQlV1xx+zB8gvmtgnP1K6qMD+1lPqnYalwxnkSFkC4Fi qwpJVT+0QyG6lW2f/J00X75I+++25KBgLXGZKj3bOPu2nvyvGM6TszAR8ywL0S2k SpOrTjuzZulzW4bbIfQn+kjjp27akgJHwuLZrRgFsl/imQJt/VdXaY0FJQLCRlbx qj4L8ln4myDszCEwb/cw =Vuhq -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org