tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Multi-URL Access 1 Webapp
Date Mon, 16 Sep 2013 13:56:25 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chris,

On 9/14/13 7:27 PM, Chris Arnold wrote:
> Chuck,
> 
> On 9/13/13 4:38 PM, Caldarale, Charles R wrote:
>>> From: Chris Arnold [mailto:carnold@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/
> 
> 
>>> 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).
>>> 
> 
> Not configuring a single app for each user. http://share.domain.tld
> hits apache and apache should "forward" the connection to tomcat

If you just need 1 deployed webapp, then simply change your webapp to
sniff the client's name from the URL. You don't need to change
anything: you still only need one (default) virtual host in Tomcat,
and you can do whatever you want (e.g. single virtual host) in httpd.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSNw4JAAoJEBzwKT+lPKRYucwQAITvXSYc8b2k4JySHaiJD469
GG/mQt3NlLiTKdfiZA+CZHwuZ5oa5jAQXyMXY8LOqyecDZKMioZFakNdrA61sdP3
yx5EQwjYidTE7oYJwk4YDcSDWie4zubyA05kSbRHk6+vUJNyR0X+TXKSmqL/0b+f
Jz7bu1VuK/y4ZUg03pa7SqVxbOY+P+Yse0traiZoqcGZBWfN2nGIbpkQezJohmx6
k4sJNUGvJI92cimWPhyiI4nV9zYCf6HPc90GKYDA+HumNCnqdKNQWEp2Ybmf1vu4
biMLHQOzwg+9rLtM/0FwYz8YT7tLR7WIpQWYJqiI9UBQ3vyaUWpyjHVGF+rKbIJF
jBoQxltHEOBZhFelRA1o2eqfOHp4DJtaxWbGh18ZRGb+BOyDN4Fj/YrnE2zxZGuM
Vm5yXzxXlCcf04lO5XqTKoGfKh5P6cOaBnwCodPWJkKikVkS9Iva3tkmyE9eK5IJ
0EC/SAF6dL8c60pmBHAluYB4eA/9gumU0K65yx5sjDgHXXf1CPWVE2Flpnzm2m4F
2hqmETvrdLkeg7J6T0y3VJkN9hc0KKMAqwnfdtp0J7O9zChlbVgpYeQE9b/3f1V3
UM0MualN6iXG4MNhPRVyj/LvL+K/IjMQXWrrhaxvJhICTwXOLbBAwElsbUCpjcsv
1nK77XRwar7RQQmkdZjE
=2/CS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message