# How to disable Real User Monitoring on Apache?

**URL:** <https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, application-monitoring, user-sessions, apache\
**Created:** [January 20, 2020, 3:58pm UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930 "2020-01-20T15:58:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [January 20, 2020, 3:58pm UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/1 "2020-01-20T15:58:53Z")

</div>

Hi, I need to install Dynatrace on my Apache server, but I would need the RUM to be turned off from the beginning. I just need the API response time, and I don’t want to be bothered with RUM.

The thing is, I will be doing it on the Production server and don’t want it to break anything.

Is it possible to do that?

---

<div class="post-metadata">

**Author:** ![alonso\_decosio](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alonso\_decosio](https://community.dynatrace.com/u/alonso_decosio)\
**Post date:** [January 20, 2020, 4:15pm UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/2 "2020-01-20T16:15:38Z")

</div>

There’s a couple of ways that you can do that:

1) Define the application and disable RUM for it: Application \> Select the new applications \> edit \> disable Real User Monitoring

2) Disable the JS injection on the process group: technologies \> select de process group \> edit \> disable JS injection ( if you have more that one instance of Apache on that process group, this will afect all of them).

---

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [January 20, 2020, 4:25pm UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/3 "2020-01-20T16:25:16Z")

</div>

@Alonso - Thanks Alonso for your response. Is there a way to do it from the server?

I mean I am installing it by using the following instructions by extracting the zip file of Dynatrace on apache server -

I mean is there a way to do it via configuration or by enabling/disabling any tag in the configuration?

> **[Install OneAgent on Solaris](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/solaris/install-oneagent-on-solaris)**
>
> Find out how to configure Dynatrace to monitor applications of different technologies that run on Solaris (x86 and SPARC).

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [January 20, 2020, 6:22pm UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/4 "2020-01-20T18:22:03Z")

</div>

It’s not possible in that way, but you can just disable default user application in dynatrace. In such case, RUM will work only for those that were already configured.

Sebastian

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 21, 2020, 7:34am UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/5 "2020-01-21T07:34:18Z")

</div>

Based on my experience it is almost always safer to disable the RUM injection at the process group level. In that case, the RUM code does not get executed in the agent at all.

If you just define an application and disable real user monitoring for the application, the RUM code in the agent will still be active. If for any reason someone accesses web application that is not disabled via this apache http server, the RUM injection will happen.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [January 21, 2020, 8:30am UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/6 "2020-01-21T08:30:12Z")

</div>

You’re right but if this process group does not exist, you will not be able to do it before agent installation.

Sebastian

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 21, 2020, 9:47am UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/7 "2020-01-21T09:47:21Z")

</div>

Actually the Apache restart time matters. Process groups are discovered immediately after OneAgent installation. So you can disable it on the process group level just after OneAgent installation and before Apache server restart. That is probably the safest practice.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [January 21, 2020, 10:02am UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/8 "2020-01-21T10:02:35Z")

</div>

You’re right 🙂

---

<div class="post-metadata">

**Author:** ![PatG](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@PatG](https://community.dynatrace.com/u/PatG)\
**Post date:** [September 23, 2025, 3:55pm UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/9 "2025-09-23T15:55:03Z")

</div>

Anyway to disable on just one of the VirtualHosts in for a single instance of Apache httpd?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 24, 2025, 6:40am UTC](https://community.dynatrace.com/t/how-to-disable-real-user-monitoring-on-apache/22930/10 "2025-09-24T06:40:22Z")

</div>

You need to define a web application with detection rules for the particular virtualhost and disable RUM on that virtual host. Also, make sure the web app detection rule is on the top. There is no alternative if you need RUM enabled on other hosts within the same Apache httpd process.
