# RUM injection when application is served by nginx + varnish + apache

**URL:** <https://community.dynatrace.com/t/rum-injection-when-application-is-served-by-nginx-varnish-apache/12169>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, nodejs, apache\
**Created:** [May 29, 2018, 3:16pm UTC](https://community.dynatrace.com/t/rum-injection-when-application-is-served-by-nginx-varnish-apache/12169 "2018-05-29T15:16:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asauvanet](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@asauvanet](https://community.dynatrace.com/u/asauvanet)\
**Post date:** [May 29, 2018, 3:16pm UTC](https://community.dynatrace.com/t/rum-injection-when-application-is-served-by-nginx-varnish-apache/12169/1 "2018-05-29T15:16:53Z")

</div>

Hi dynatrace community,

I encounter an application that is deployed with the following architecture :

web browser =\> 2 x nginx =\> 2 x varnish cache =\> 3 x apache httpd servers

How is injected RUM and what is the rule adopted by dynatrace to avoid injection in apache ?  
Thank’s in advance for your answer and help.

Best Regards.  
Alain

---

<div class="post-metadata">

**Author:** ![AlexanderSommer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alexandersommer/32/2501_2.png) [@AlexanderSommer](https://community.dynatrace.com/u/AlexanderSommer)\
**Post date:** [May 30, 2018, 10:55am UTC](https://community.dynatrace.com/t/rum-injection-when-application-is-served-by-nginx-varnish-apache/12169/2 "2018-05-30T10:55:09Z")

</div>

By default the injection applies as early as possible in the response delivery chain. That means that Apache will try to inject first. If you want to do injection at nginx, you need to turn of real user monitoring javascript injection for the apache process group.

Go to the settings - monitoring - monitoring overivew - process groups and edit the settings for your apache process group.

On Varnish we will not do an injection, so the injection will take place at nginx.

---

<div class="post-metadata">

**Author:** ![asauvanet](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@asauvanet](https://community.dynatrace.com/u/asauvanet)\
**Post date:** [June 22, 2018, 12:15pm UTC](https://community.dynatrace.com/t/rum-injection-when-application-is-served-by-nginx-varnish-apache/12169/3 "2018-06-22T12:15:39Z")

</div>

Thank’s Alexander. That is the needed answer.  
Best Regards

Alain
