Proxy server configuration

Maxim Dounin mdounin at mdounin.ru
Mon Mar 24 00:19:18 MSK 2008


Hello!

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

>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

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 Dounin





More information about the nginx mailing list