On 1/6/11 11:02 AM, Gabor Pinter wrote:
> Dear list,
>=20
> I have a very trivial problem.
>=20
> My setup:
> CentOS 5.5
> nginx 0.8.53
> Tomcat6
You're using the unreleased, but highly experimental and potentially
dangerous version 6.3.7!?
;)
> net ---> nginx:80 (proxy_pass) ---> tomcat:8080
>=20
> Proxy redirect is triggered by prefix "/tom/"
>=20
> myhost:80/tom/<url> ---> 127.0.0.1:8080/tom/<url>
>=20
> Now here is my question.
> How can I let Tomcat know about this "/tom/" prefix?
What do you expect Tomcat to do with the prefix?
You have configured* the proxy to expect Tomcat to have either tom.war
or a directory deployed in tomcat/webapps called 'tom'.
e.g
path/to/tomcat/webapps/tom.war
or
path/to/tomcat/webapps/tom/
> <Host name=3D"localhost/tom" ... seems to work in a somewhat confusing=
> manner
"localhost/tom" isn't valid hostname, nothing surprising about that.
p
* Assuming a default server.xml - you didn't say...
> The Tomcat welcome page ignores prefix /tom/ in links
> (hence, no pix + links are wrong ).
> However, in apps (e.g. 'manager', 'examples') links are prefixed by
> /tom/ (so pix & links are fine).
>=20
>=20
> What is the authentic way to make the prefix absolutely transparent?
>=20
> Thanks in advance!
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>=20
|