Hello all,

I'm trying to use NiFi behind the proxy (tried both options: Nginx and
Apache2). In every case I get the NiFi UI loaded properly and I'm able to
compose a simple flow, define service controller. But when I try to
disable/edit service controller I receive an ERROR dialog with the
following content:

<html> <head><title>404 Not Found</title></head> <body bgcolor="white">
<center><h1>404 Not Found</h1></center> <hr><center>nginx/1.10.3
(Ubuntu)</center> </body> </html>
When I look into the inspection page I see 404 for the following request:
https://<my domain
here>/nifi-api/flow/bulletin-board?sourceId=bf7ec936-d34e-3e0a-3624-33f457e2c7a2
which does not have a URI prefix (context path) my proxy is configured
with: "/admin". When I add the missing prefix manually I do receive a
proper HTTP response.

As a result this prevents me from disabling/modifying/deleting service
controller.
The proxy configurations are provided below.

Did anyone face the similar issue? Is this a bug or a possible
misconfiguration?

Thank you in advance,
Alexander


====== Nginx proxy config =====
location ~ ^/admin(?<section>.*) {
proxy_pass http://127.0.0.1:8080$section$is_args$args;
proxy_redirect off;
proxy_set_header  X-ProxyScheme "https";
proxy_set_header  X-ProxyHost $http_host;
proxy_set_header  X-ProxyPort 443;
proxy_set_header  X-ProxyContextPath "/admin";
proxy_connect_timeout   180;
proxy_send_timeout      180;
proxy_read_timeout      180;
}
============================

===== Apache proxy config =======
<Location "/admin">
RequestHeader add X-ProxyScheme "http"
RequestHeader add X-ProxyHost "<here comes my domain>"
RequestHeader add X-ProxyPort "80"
RequestHeader add X-ProxyContextPath "/admin"
ProxyPass http://127.0.0.1:8080
ProxyPassReverse http://127.0.0.1:8080
</Location>

============================

-- 
All the best,
Alexander.

Reply via email to