15 Oct 2018 02:40 PM - last edited on 10 Dec 2021 05:57 AM by MaciejNeumann
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?
server {
listen 80 default_server;
server_name _;
return301 <a href="https://$host$request_uri;">https://$host$request_uri;
}
or will cause another bug in my environment.
Solved! Go to Solution.
16 Oct 2018 07:57 AM
Yes, this should work. However, this snippet will probably disappear after upgrade.
16 Oct 2018 11:16 AM
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
10 Oct 2022 03:03 PM
This can be done by using a custom.settings file: