# Automatically redirect HTTP to HTTPS in Dynatrace Cluster nodes

**URL:** <https://community.dynatrace.com/t/automatically-redirect-http-to-https-in-dynatrace-cluster-nodes/16367>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed\
**Created:** [October 15, 2018, 1:40pm UTC](https://community.dynatrace.com/t/automatically-redirect-http-to-https-in-dynatrace-cluster-nodes/16367 "2018-10-15T13:40:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rene\_abdon1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rene_abdon1/32/28966_2.png) [@rene\_abdon1](https://community.dynatrace.com/u/rene_abdon1)\
**Post date:** [October 15, 2018, 1:40pm UTC](https://community.dynatrace.com/t/automatically-redirect-http-to-https-in-dynatrace-cluster-nodes/16367/1 "2018-10-15T13:40:11Z")

</div>

Hi,

Is there an specific way to automatically redirect HTTP requests to my HTTPS in Dynatrace Managed cluster nodes?

I mean, many users forget to include https in the request and receive an error message that could easily be avoid if Dynatrace clusters made this automatically.

If I just add this code at nginx.conf file at all clusters nodes will resolve?

```auto
server {<br>	listen 80 default_server;<br>	server_name _;<br>	return301 <a href="https://$host$request_uri;">https://$host$request_uri;<br>}

```

or will cause another bug in my environment.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 16, 2018, 6:57am UTC](https://community.dynatrace.com/t/automatically-redirect-http-to-https-in-dynatrace-cluster-nodes/16367/2 "2018-10-16T06:57:14Z")

</div>

Yes, this should work. However, this snippet will probably disappear after upgrade.

---

<div class="post-metadata">

**Author:** ![rene\_abdon1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rene_abdon1/32/28966_2.png) [@rene\_abdon1](https://community.dynatrace.com/u/rene_abdon1)\
**Post date:** [October 16, 2018, 10:16am UTC](https://community.dynatrace.com/t/automatically-redirect-http-to-https-in-dynatrace-cluster-nodes/16367/3 "2018-10-16T10:16:32Z")

</div>

Yeah, you are rigth, maybe an script that check and update nginx.conf file can solve this, I will try and come back here to say if works.

Tks Julius

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [October 10, 2022, 2:03pm UTC](https://community.dynatrace.com/t/automatically-redirect-http-to-https-in-dynatrace-cluster-nodes/16367/4 "2022-10-10T14:03:54Z")

</div>

This can be done by using a custom.settings file:

[Configurable properties of Dynatrace Managed](https://docs.dynatrace.com/managed/shortlink/dynatrace-server-configure)
