tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: url prefixes behind proxy
Date Thu, 06 Jan 2011 11:14:40 GMT
On 1/6/11 11:02 AM, Gabor Pinter wrote:
> Dear list,
> 
> I have a very trivial problem.
> 
> 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
> 
> Proxy redirect is triggered by prefix "/tom/"
> 
> myhost:80/tom/<url>  --->  127.0.0.1:8080/tom/<url>
> 
> 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="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).
> 
> 
> What is the authentic way to make the prefix absolutely transparent?
> 
> Thanks in advance!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


Mime
View raw message