Welcome! Log In Create A New Profile

Advanced

Re: proxy_pass to multi background monit http services

June 25, 2009 05:45PM
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.
Subject Author Posted

Re: proxy_pass to multi background monit http services

Chris Kraybill March 23, 2009 06:02PM

Re: proxy_pass to multi background monit http services

Igor Sysoev March 24, 2009 02:19AM

Re: proxy_pass to multi background monit http services

Rush June 25, 2009 05:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready