HTTPS redirect on custom port not working

Hi there,

I have a setup with lot of services listening on custom ports.
The following configuration for a service listening on 45080 works fine if I enter https://my.web-site.com:45080
But gives ERR_EMPTY_RESPONSE if I type http://my.web-site.com:45080

Is this configuration possible to work when I have custom ports?

frontend web-site
    bind *:45080 ssl crt /etc/haproxy/certs/
    mode http
    option http-keep-alive

    # logging options
    log global
    option dontlognull
    option log-separate-errors
    option httplog

    http-request redirect scheme https code 301 unless { ssl_fc }

    default_backend web-site.server

backend web-site.server
    mode http
    server WEBSVR websvr check port 80

This is expected behavior. Port is configured for HTTPS / SSL.

Thank you Lukastribus

It now makes sense as I have configured the port for HTTPS/SSL.