Help needed: I am trying to use HAProxy to deny access from internet to a specific URL

Hi all
I am a beginner level HAProxy user and I am trying to use HA proxy to deny access to an inside web page from outside of my firewall.
I am sharing photos with my family using an internal server
The pictures are at http://192.168.1.39:8080/sharing_poto_folder/albumname
This is natted and exposed to Internet
If the user tries to use http://public_ip:8080/ the request is redirected to http(s)://public_ip:8080/cgi-bin/
This last URL (with cgi-bin) is what I am trying to restrict access to or better make impossible to use.
http://public_ip:8080/sharing_poto_folder/albumname

Here is my config file, please if you could tell me what I am doing wrong, no matter what I do the URL http://public_ip:8080/cgi-bin/ is still available

# Automaticaly generated, dont edit manually.
# Generated on: 2023-10-08 15:10
global
        maxconn                 1000
        log                     192.168.1.39    local7  info
        stats socket /tmp/haproxy.socket level admin  expose-fd listeners
        uid                     80
        gid                     80
        nbthread                        1
        hard-stop-after         15m
        chroot                          /tmp/haproxy_chroot
        daemon
        log-send-hostname               HAProxy
        server-state-file /tmp/haproxy_server_state
frontend DenyLoginToArchive
        bind                    10.0.0.197:8080 name 10.0.0.197:8080
        mode                    http
        log                     global
        option                  http-keep-alive
        timeout client          30000
        default_backend Archive_ipvANY
        default_backend Archive_ipvANY
backend Archive_ipvANY
        mode                    http
        id                      100
        log                     global
        option                  log-health-checks
        http-check              send meth GET uri http://192.168.1.39:8080/
        timeout connect         30000
        timeout server          30000
        retries                 3
        load-server-state-from-file     global
        option                  httpchk
        acl                     Login   var(txn.txnpath) -m sub -i cgi-bin
        http-request set-var(txn.txnpath) path
        http-response deny
        server                  Archive_server 192.168.1.39:8080 id 101 check inter 1000