# I'm newbie, how to redirect https to https

**URL:** <https://discourse.haproxy.org/t/im-newbie-how-to-redirect-https-to-https/3722>\
**Category:** Help!\
**Created:** [April 13, 2019, 7:57pm UTC](https://discourse.haproxy.org/t/im-newbie-how-to-redirect-https-to-https/3722 "2019-04-13T19:57:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ervig](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@ervig](https://discourse.haproxy.org/u/ervig)\
**Post date:** [April 13, 2019, 7:57pm UTC](https://discourse.haproxy.org/t/im-newbie-how-to-redirect-https-to-https/3722/1 "2019-04-13T19:57:19Z")

</div>

I’m newbie with haproxy and I need redirect to https a https server, this is the configuration

frontend https\_certificat\_parcdesalutmar  
bind \*:443 ssl crt /etc/haproxy/certificats/test.cat.pem  
timeout client 1m

```
use_backend test_backend if { req_ssl_sni -i test }
default_backend test_backend

```

backend test\_backend  
balance roundrobin  
server web-first 192.168.1.100:443  
server web-second 192.168.1.101:443

I would appreciate your help !!! thank’s

---

<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:** [April 15, 2019, 6:25pm UTC](https://discourse.haproxy.org/t/im-newbie-how-to-redirect-https-to-https/3722/2 "2019-04-15T18:25:06Z")

</div>

You don’t mean redirect, what you mean is use a HTTPS servers as a backend.

You can do that by specifying the `ssl` keyword on the server line, along with a [ca-file](https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#5.2-ca-file) directive used for certificate verification of the backend server (or set `verify none` if you don’t want to verify the backend server certificate).

---

<div class="post-metadata">

**Author:** ![ervig](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@ervig](https://discourse.haproxy.org/u/ervig)\
**Post date:** [May 7, 2019, 3:45pm UTC](https://discourse.haproxy.org/t/im-newbie-how-to-redirect-https-to-https/3722/3 "2019-05-07T15:45:01Z")

</div>

thank’s for your help !!!

this is my last configuration and it’s works

frontend https\_web  
bind \*:443  
mode tcp  
tcp-request inspect-delay 5s  
tcp-request content accept if { req\_ssl\_hello\_type 1 }

```
use_backend test_backend if { req_ssl_sni -i test.dominio.com }

```

backend test\_backend  
server firts ip:443 check

thank’sssss
