15 Oct 2018
06:40 AM
- last edited on
09 Dec 2021
09:57 PM
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.
Yes, this should work. However, this snippet will probably disappear after upgrade.
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
This can be done by using a custom.settings file: