Hi All,

Both apps are in docker containers….my haproxy configs are in haproxy container

frontend http
        bind :80        acl chs-nifi  path_reg ^/chs-nifi(/|$)
        http-request add-header X-ProxyContextPath "/chs-nifi"
        use_backend chs-nifi_read     if chs-nifi METH_GET
        use_backend chs-nifi_write    if chs-nifi !METH_GETfrontend https
        bind :443 ssl crt /etc/bp2/haproxy/ssl/server.pem no-sslv3
        option http-buffer-request
        capture request header Host len 64
        http-request add-header X-ProxyContextPath "/chs-nifi"        acl 
chs-nifi  path_reg ^/chs-nifi(/|$)
        use_backend chs-nifi_read     if chs-nifi METH_GET
        use_backend chs-nifi_write    if chs-nifi !METH_GETbackend chs-nifi_read
        balance static-rr
        option forwardfor
        acl missing_slash path_end /chs-nifi
        reqrep ^(GET)\ /chs-nifi/(.*) \1\ /\2
        redirect prefix / drop-query append-slash if missing_slash
        server chs-nifi_0 172.16.0.41:8080 check inter 2000 fall 3 backend 
chs-nifi_write
        balance static-rr
        option forwardfor
        acl missing_slash path_end /chs-nifi
        reqrep ^(POST|PUT|PATCH|DELETE)\ /chs-nifi/(.*) \1\ /\2
        redirect prefix / drop-query append-slash if missing_slash
        server chs-nifi_0 172.16.0.41:8080 check inter 2000 fall 3


nifi config are in nifi container

# web properties #
nifi.web.war.directory=./lib
nifi.web.http.host=
nifi.web.http.port=8080
nifi.web.http.network.interface.default=
nifi.web.https.host=
nifi.web.https.port=
nifi.web.https.network.interface.default=
nifi.web.jetty.working.directory=./work/jetty
nifi.web.jetty.threads=200
nifi.web.max.header.size=16 KB
nifi.web.proxy.context.path=/chs-nifi
nifi.web.proxy.host=<host>:443

I am able to access the nifi UI by https://<host>/chs-nifi/nifi/ but not able 
to modify anything in it. It always redirects to /nifi-api on the browser and 
through /chs-nifi/nifi-api.


My whole configs are derived from  
https://pierrevillard.com/2017/02/10/haproxy-load-balancing-in-front-of-apache-nifi/
 and 
https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#proxy_configuration.
still stuck on this.

Please help

Regards
Sandeep

Reply via email to