Hi,
I'm playing with environment variables. I've set them on ubuntu host in /etc/environments. After host restart, proper environments DT_TAGS and DT_CUSTOM_PROP are properly read by goo processed that are detected by Dynatrace. Unfortunately nginx / PHP-FPM / apache are ignoring them. Is it something special I have to do, to make it work?
Regards,
Sebastian
Answer by Mathieu C. ·
Hello,
Nginx and Apache don't read in /etc/environment.
You must create file with your env vars in specifics files :
- Nginx : /etc/default/nginx
- Apache : /etc/apache2/envvars
For PHP-FPM, try to configure clear_env = no in configuration.
Regards,
Mathieu
JANUARY 15, 3:00 PM GMT / 10:00 AM ET