I just ran into this as well while trying out 1.5.0-SNAPSHOT.

What is the solution where you are running nifi behind a proxy?  I tried
setting nifi.web.http.host to my proxy ip but then nifi attempted to bind
to this ip address.

Hopefully I am missing something.  If not any chance a config value for
allowed proxies before the release?



On Fri, Dec 15, 2017, 19:26 Mike Thomsen <mikerthom...@gmail.com> wrote:

> Thanks. Is that documented?
>
> On Fri, Dec 15, 2017 at 7:02 PM, Andy LoPresto <alopre...@apache.org>
> wrote:
>
>> Hi Mike,
>>
>> This is a recent change introduced in 1.5.0-SNAPSHOT (master). You can
>> resolve this by setting nifi.web.http.host in nifi.properties to the value
>> of SERVER_HERE.
>>
>>
>> Andy LoPresto
>> alopre...@apache.org
>> *alopresto.apa...@gmail.com <alopresto.apa...@gmail.com>*
>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>
>> On Dec 15, 2017, at 3:32 PM, Mike Thomsen <mikerthom...@gmail.com> wrote:
>>
>> I get this error after I installed a new build:
>>
>> The request contained an invalid host header [SERVER_IP:8080] in the
>> request [/]. Check for request manipulation or third-party intercept.
>>
>> In the logs it says:
>>
>> 2017-12-15 18:34:59,937 WARN [NiFi Web Server-66]
>> o.a.n.w.s.HostHeaderSanitizationCustomizer Request host header
>> [SERVER_HERE:8080] different from web hostname [(:8080)]. Overriding to
>> [:8080/nifi/]
>> 2017-12-15 18:34:59,938 WARN [NiFi Web Server-66]
>> o.a.nifi.web.server.HostHeaderHandler Request host header
>> [SERVER_HERE:8080] different from web hostname [localhost(:8080)].
>> Overriding to [localhost:8080/nifi/]
>> 2017-12-15 18:35:00,059 WARN [NiFi Web Server-59]
>> o.a.n.w.s.HostHeaderSanitizationCustomizer Request host header
>> [SERVER_HERE:8080] different from web hostname [(:8080)]. Overriding to
>> [:8080/favicon.ico]
>> 2017-12-15 18:35:00,059 WARN [NiFi Web Server-59]
>> o.a.nifi.web.server.HostHeaderHandler Request host header
>> [SERVER_HERE:8080] different from web hostname [localhost(:8080)].
>> Overriding to [localhost:8080/favicon.ico]
>>
>> Never saw this with 1.4 and earlier. Any ideas?
>>
>> Thanks,
>>
>> Mike
>>
>>
>>
>

Reply via email to