# Rancher should not redirect http to https when I use extenal Nginx LB

**URL:** <https://forums.suse.com/t/rancher-should-not-redirect-http-to-https-when-i-use-extenal-nginx-lb/20576>\
**Category:** SUSE Rancher Prime\
**Created:** [June 21, 2021, 2:03am UTC](https://forums.suse.com/t/rancher-should-not-redirect-http-to-https-when-i-use-extenal-nginx-lb/20576 "2021-06-21T02:03:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlight](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/xlight/32/1115_2.png) [@xlight](https://forums.suse.com/u/xlight)\
**Post date:** [June 21, 2021, 2:03am UTC](https://forums.suse.com/t/rancher-should-not-redirect-http-to-https-when-i-use-extenal-nginx-lb/20576/1 "2021-06-21T02:03:33Z")

</div>

rancher should not redirect http to https when I use extenal Nginx LB.

request:

```auto
curl -v 127.0.0.1:80 \
  -H"Host: rancher2.domain.com" \
  -H "X-Forwarded-Proto: https" \
  -H"X-Forwarded-Port: 443" \
  -H"X-Forwarded-For: 127.0.0.1" 

```

response:

```auto
* Trying 127.0.0.1:80...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: rancher2.domain.com
> User-Agent: curl/7.68.0
> Accept: */*
> X-Forwarded-Proto: https
> X-Forwarded-Port: 443
> X-Forwarded-For: 127.0.0.1
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Content-Length: 49
< Content-Type: text/html; charset=utf-8
< Date: Mon, 21 Jun 2021 01:55:58 GMT
< Location: https://rancher2.domain.com/
< 
<a href="https://rancher2.domain.com/">Found</a>.

* Connection #0 to host 127.0.0.1 left intact

```

VERSION:

```auto
rancher 2.5.8 on k3s v1.21.1+k3s1 (75dba57f)

```

HELM INSTALL CMD:

```auto
helm install rancher rancher-stable/rancher \
  --namespace cattle-system \
  --set hostname=rancher.domain.com \
  --set tls=external

```
