当前位置:   article > 正文

nifi 映射ip部署报错_the request contained an invalid host header

the request contained an invalid host header

nifi1.24.0 在arm架构,双ip部署报错问题解决
System Error
The request contained an invalid host header [192.168.1.11:8888] in the request [/nifi/]. Check for request manipulation or third-party intercept.
Valid host headers are [empty] or:
127.0.0.1
127.0.0.1:8888
localhost
localhost:8888
[::1]
[::1]:8888
fdz57
fdz57:8888
192.168.1.12
192.168.1.12:8888
192.168.1.11

2023-12-05 20:49:10,281 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap
  • 1

2023-12-05 20:49:10,282 INFO [main] org.apache.nifi.NiFi Started Application Controller in 13.678 seconds (13678755900 ns)
2023-12-05 20:49:17,705 WARN [NiFi Web Server-21] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/nifi/]
2023-12-05 20:49:17,765 WARN [NiFi Web Server-26] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/favicon.ico]
2023-12-05 20:49:18,887 WARN [NiFi Web Server-21] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/nifi/]
2023-12-05 20:49:18,934 WARN [NiFi Web Server-26] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/favicon.ico]
2023-12-05 20:49:20,095 WARN [NiFi Web Server-21] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/nifi/]
2023-12-05 20:49:20,158 WARN [NiFi Web Server-26] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/favicon.ico]
2023-12-05 20:49:20,862 WARN [NiFi Web Server-21] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/nifi/]
2023-12-05 20:49:20,902 WARN [NiFi Web Server-26] o.a.nifi.web.server.HostHeaderHandler Request host header [192.168.1.11:8888] different from web hostname [192.168.1.12(:8888)]. Overriding to [192.168.1.12:8888/favicon.ico]
2023-12-05 20:49:27,441 INFO [pool-7-thread-1] o.a.n.c.r.WriteAheadFlowFileRepository Initiating checkpoint of FlowFile Repository
2023-12-05 20:49:27,441 INFO [pool-7-thread-1] o.a.n.c.r.WriteAheadFlowFileRepository Successfully checkpointed FlowFile Repository with 0 records in 0 milliseconds

解决方法:
在/etc/hosts 下添加(其中12为实际ip,11为映射后的ip)
192.168.1.12 192.168.1.11:8888
192.168.1.12 192.168.1.11:8888

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/147434
推荐阅读
相关标签
  

闽ICP备14008679号