my config (nginx replaces location uri with proxy_pass uri, if you specified it after proxy hostname or proxy port) :
[code]
location /monit/ {
allow <DMZ-Network>;
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, replace /monit/ uri part to just /
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
[/code]
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...
Edited 1 time(s). Last edit at 06/25/2009 05:47PM by Rush.