proxy_pass to multi background monit http services

Rush nginx-forum at nginx.us
Fri Jun 26 01:45:38 MSD 2009


my config (nginx replaces location uri with proxy_pass uri, if you specified it after proxy hostname or proxy port) :


        location /monit/ {
            allow ;
            deny all;

            sub_filter_once off;
            sub_filter "a href='/" "a href='/monit/";

            proxy_pass http://127.0.0.1:2812/; # pass query to backend as is
            proxy_set_header Host             $host;
            proxy_set_header X-Real-IP        $remote_addr;
        }


So, to replace wrong links I've used sub_filter directive. To use it nginx must be recompiled with --with-http_sub_module (see if you already have it - nginx -V).

With all of this configuration only on "_about" screen is the bug. Do you need often see _about page ? ;)

Proklyatiy yazikivoi barrier...

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,306,3395#msg-3395






More information about the nginx mailing list