nginx with tomcat

Igor Sysoev is at rambler-co.ru
Fri Aug 29 14:01:49 MSD 2008


On Fri, Aug 29, 2008 at 12:45:18PM +0300, Sergej Kandyla wrote:

> Robert Gabriel wrote:
> >Does anyone know if nginx is possible to work with tomcat, tomcat as
> >somekind of a proxy back-end, similar idea to php-fastcgi?
> >  
> work excellently.
> 
> for example:
> 
>        location / {
>            rewrite ^/$ /tomcatapp/    redirect;
>        }
> 
>        location /tomcatapp {
>            proxy_pass         http://localhost:9080/tomcatapp;
>                 <skip>
>        }
> 
> or:
>      location / {
>             proxy_pass         http://localhost:9080/tomcatapp;

Probably

-             proxy_pass         http://localhost:9080/tomcatapp;
+             proxy_pass         http://localhost:9080/tomcatapp/;

>                  <skip>
>        }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list