Proxy server configuration

hi,

Can someone specify how to configure nginx as proxy server for:

  1. apache http server running on port 8000
  2. apache tomcat server running on port 8080

What I want as end result is:

http://myip/ should point to the root directory of apache http :
http://127.0.0.1:8000
http://myip/test should point to some app hosted in tomcat like :
http://127.0.0.1:8080/testsite

Thanks,
Rakesh.

Hello!

On Mon, Mar 24, 2008 at 12:44:25AM +0530, just starting wrote:

http://127.0.0.1:8000
http://myip/test should point to some app hosted in tomcat like :
http://127.0.0.1:8080/testsite

Something like:

 location / {
     proxy_pass http://127.0.0.1:8000;
 }
 location /test {
     proxy_pass http://127.0.0.1:8080/testsite;
 }

Please refer to http://wiki.codemongers.com/ for more information.

Maxim D.

Hi Maxim,

Did it myself :). I had tried that b4 without success. So, i thought i
was
doing something wrong.

Then killed all the process and restarted it.

Voila, it started working.

Anyway thanks a lot for your assistance.

Thanks,
Rakesh.

PS: if you know you are doing the right thing and it doesn’t seem to
working, kill nginx process and restart or better check the config file
with
nginx…cant recall the command though :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs