Welcome! Log In Create A New Profile

Advanced

Nginx reverse proxy for tomcat

March 03, 2011 06:14AM
Hi.

I am new to nginx.
I am trying to set up nginx as reverse proxy for a tomcat server using SSL connection.

I want the client's browser to load my tomcat application when nginx reverse proxy's IP is called from client's browser.


My tomcat application's address is 192.168.25.25 and nginx proxy's address is 192.168.25.50

In my nginx.conf file i have added these lines


########################################################
location / {

proxy_pass https://192.168.25.25:443/myapp/;


proxy_redirect https://192.168.25.25/myapp/ https://192.168.25.25/;
## The links in my application work only when i do this redirection.


}
########################################################


Some of the images in my application is stored at 192.168.25.25/images/ .

Now this cant be accessed once i made the change proxy_pass

Is there way to access images directory also without changing proxy_pass ?

Thanks in advance.
SubjectAuthorPosted

Nginx reverse proxy for tomcat

krishMarch 03, 2011 06:14AM

Re: Nginx reverse proxy for tomcat

krishMarch 07, 2011 06:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready