<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: NGINX reverse proxy to NIFI: contextpath issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303566#M221597</link>
    <description>&lt;P&gt;To give you a bit of context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NIFI is configured to look up AD users. If they are part of a group, they have access. This works by going to my &lt;A href="https://nifi1.network.local:844/nifi" target="_blank"&gt;https://nifi1.network.local:844/nifi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NGINX is configured to proxy &lt;A href="https://proxy.network.local" target="_blank"&gt;https://proxy.network.local&lt;/A&gt; to &lt;A href="https://proxy.network.local/nifi1" target="_blank"&gt;https://proxy.network.local/nifi1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When going to &lt;A href="https://proxy.network.local" target="_blank"&gt;https://proxy.network.loca&lt;/A&gt;l i'll get redirected to &lt;A href="https://proxy.network.local" target="_blank"&gt;https://proxy.network.loca&lt;/A&gt;/nifi1. I can log in but then, I get a 404 error. If I press back in the browser, it will show me as logged in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find any tutorials or how-tos on how to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not using PKI certificates for users. They need to enter the username/password to be sent to AD for authentication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone? Thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 21:35:14 GMT</pubDate>
    <dc:creator>B1naryC</dc:creator>
    <dc:date>2020-09-28T21:35:14Z</dc:date>
    <item>
      <title>NGINX reverse proxy to NIFI: contextpath issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303351#M221517</link>
      <description>&lt;DIV class="js-voting-container grid fd-column ai-stretch gs4 fc-black-200"&gt;I have 2 NIFI instance on differents servers with 1 NGINX reverse proxy in front.&lt;/DIV&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;It should go like this:&lt;/P&gt;&lt;PRE&gt;NGINX Reverse proxy &amp;gt; proxy.lan/nifi1 goes to the NIFI 1 instance on nifi1.lan
NGINX Reverse proxy &amp;gt; proxy.lan/nifi2 goes to the NIFI 2 instance on nifi2.lan&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NGINX reverse proxy runs on 192.168.1.114:80 NIFI runs on 192.168.1.153:8080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My configuration file nginx.conf:&lt;/P&gt;&lt;PRE&gt;server {
listen 80
server_name 192.168.1.114;

location /nifi1 {
proxy_set_header X-ProxyScheme "http";
proxy_set_header X-ProxyHost "192.168.1.114";
proxy_set_header X-ProxyPort "80";
proxy_set_header X-ProxyContextPath "/nifi1";
proxy_pass http://192.168.1.153:8080;
}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my NIFI nifi.properties file:&lt;/P&gt;&lt;PRE&gt;nifi.web.proxy.content.path=/nifi1
nifi.web.proxy.host=192.168.1.114:80&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;When accessing http://192.168.1.114/nifi1&amp;nbsp;, I will get the message "Did you mean /nifi" but the page looks off. It's missing the styling of the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I get redirected after 5 secs to http://192.168.1.114/nifi1/nifi&amp;nbsp; and the same message appears "Did you mean /nifi", again, without any styling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;And it just keeps redirecting over and over, retrying http://192.168.1.114/nifi/nifi1&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Either i'm missing a configuration in NGINX and it's not passing what NIFI is looking for, or NIFI can't process my request from NGINX and it's in a redirecting loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;When going directly to http://192.168.1.153:8080/nifi&amp;nbsp;, I can get the page just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues? I've enabled the DEBUGGING logs on the NIFI side but I can't really see anything that could identify the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone? thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Sep 2020 16:45:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303351#M221517</guid>
      <dc:creator>B1naryC</dc:creator>
      <dc:date>2020-09-24T16:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: NGINX reverse proxy to NIFI: contextpath issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303375#M221525</link>
      <description>&lt;P&gt;It's fixed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;server {
listen 80
server_name 192.168.1.114;

location /nifi1/ {
proxy_set_header X-ProxyScheme "http";
proxy_set_header X-ProxyHost "192.168.1.114";
proxy_set_header X-ProxyPort "80";
proxy_set_header X-ProxyContextPath "/nifi1";
proxy_pass http://192.168.1.153:8080/;
}
}&lt;/PRE&gt;&lt;P&gt;Needed to append a trailing slash to my location and my proxy_pass.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 03:32:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303375#M221525</guid>
      <dc:creator>B1naryC</dc:creator>
      <dc:date>2020-09-25T03:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: NGINX reverse proxy to NIFI: contextpath issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303551#M221595</link>
      <description>&lt;P&gt;Still having a bit of issues enabling HTTPS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't need to have an PKI to enter the NIFI instance. The NIFI instance will check if you are part of an LDAP group and let you in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how the reverse proxy handles this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:22:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303551#M221595</guid>
      <dc:creator>B1naryC</dc:creator>
      <dc:date>2020-09-28T20:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: NGINX reverse proxy to NIFI: contextpath issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303566#M221597</link>
      <description>&lt;P&gt;To give you a bit of context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NIFI is configured to look up AD users. If they are part of a group, they have access. This works by going to my &lt;A href="https://nifi1.network.local:844/nifi" target="_blank"&gt;https://nifi1.network.local:844/nifi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NGINX is configured to proxy &lt;A href="https://proxy.network.local" target="_blank"&gt;https://proxy.network.local&lt;/A&gt; to &lt;A href="https://proxy.network.local/nifi1" target="_blank"&gt;https://proxy.network.local/nifi1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When going to &lt;A href="https://proxy.network.local" target="_blank"&gt;https://proxy.network.loca&lt;/A&gt;l i'll get redirected to &lt;A href="https://proxy.network.local" target="_blank"&gt;https://proxy.network.loca&lt;/A&gt;/nifi1. I can log in but then, I get a 404 error. If I press back in the browser, it will show me as logged in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find any tutorials or how-tos on how to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not using PKI certificates for users. They need to enter the username/password to be sent to AD for authentication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone? Thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 21:35:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NGINX-reverse-proxy-to-NIFI-contextpath-issue/m-p/303566#M221597</guid>
      <dc:creator>B1naryC</dc:creator>
      <dc:date>2020-09-28T21:35:14Z</dc:date>
    </item>
  </channel>
</rss>

