proxy_pass to multi background monit http services

Seven Du lists at ruby-forum.com
Fri Feb 27 12:37:28 MSK 2009


monit has an embedded web interface, I want to use nginx to proxy
several servers:

http://monit.example.com/server1
http://monit.example.com/server2
http://monit.example.com/server3
http://monit.example.com/server4


        location /server1/ {
                rewrite ^/sever1/(.*) /$1 break;
                proxy_pass http://localhost:2812; #monit default port
        }
        location /server2/ {.....}

The first page of each monit server displays well but because all links
in monit has absolute path http://monit.example.com/some_link instead of
http://monit.example.com/server1/some_link, I don't know hot to make
that work.


Can nginx do that? or we need to modify monit?

Thanks
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list