We have custom nginx plugin that has a single directive that goes into nginx.conf. We usually place this directive right inside the http block.
http { <br> tcell_app_id xxxxxxxx;<br> ...
This works fine without Dynatrace.
Running with Dynatrace, we get a strange error from nginx:
# sh -x dynatrace-agent64.sh nginx -g "daemon off;"<br>...<br>nginx: [emerg] "tcell_app_id" directive is duplicate in /usr/local/openresty/nginx/conf/nginx.conf:19
Strange because that directive is not duplicated and this works fine without Dynatrace.
Now if I move our directive down a bit inside the http { block, the error goes away when running with Dynatrace.
http {<br> ...<br> ... <br> tcell_app_id xxxxxxxx;<br> server {
So something in Dynatrace appears to be processing or writing this file before startup, and it is causing problems with custom directives.