# HA proxy Redirect NOT WORKING

**URL:** <https://discourse.haproxy.org/t/ha-proxy-redirect-not-working/5408>\
**Category:** Help!\
**Created:** [June 30, 2020, 6:53am UTC](https://discourse.haproxy.org/t/ha-proxy-redirect-not-working/5408 "2020-06-30T06:53:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dineshrhel](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@dineshrhel](https://discourse.haproxy.org/u/dineshrhel)\
**Post date:** [June 30, 2020, 6:53am UTC](https://discourse.haproxy.org/t/ha-proxy-redirect-not-working/5408/1 "2020-06-30T06:53:07Z")

</div>

Hi,

I have configured HA proxy for our Windows application where is running on port 80 ;

HA proxy runs on Linux machines.

I have tried to restart all https requests(SSL) to backend server port(80) by SSL Termination method.

But there is NO re directional request happens from LB to Application end.

My config sample:

#### HTTPS

frontend https-in  
bind \*:443 ssl crt /etc/SSL1/Certs1/x.pem no-sslv3 no-tlsv10  
mode http  
option forwardfor  
option http-server-close  
reqadd X-Forwarded-Proto:\ https  
reqadd X-Forwarded-Port:\ 443  
stats uri /haproxy?stats  
default\_backend backend\_https

backend backend\_https  
mode http  
balance roundrobin  
cookie SRVNAME insert nocache  
server X.X.X.X X.X.X.X:80 cookie ck\_X1 check  
server X.X.X.X X.X.X.X:80 cookie ck\_X2 check  
server X.X.X.X X.X.X.X:80 cookie ck\_X3 check

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [June 30, 2020, 7:33am UTC](https://discourse.haproxy.org/t/ha-proxy-redirect-not-working/5408/2 "2020-06-30T07:33:53Z")

</div>

If you want haproxy to handle HTTP traffic on port 80 and redirect it to HTTPS, you need to configure it.

Something like:

```
frontend httpredirect
 bind :80
 mode http
 http-request redirect scheme https
```
