nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Lobunets <>
Subject Issues with service controller when using NiFi behind the proxy
Date Mon, 19 Feb 2018 21:28:54 GMT
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
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
The proxy configurations are provided below.

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

Thank you in advance,

====== Nginx proxy config =====
location ~ ^/admin(?<section>.*) {
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"


All the best,

View raw message