View Debug for specific IPs with Mod_proxy connector enabled?

I’m trying to set up debugging from a single ip .
But it seems that mod_proxy always forwards the requests from 12.0.0.1. so that I can only see the debug info for all clients.
Is there a way to show debugging in the specified IPs in the templates section, as currently they are not honoured, presumbaly Apacheneeds to pass this along, but I thought I have this already inside httpd.conf:

<IfModule mod_proxy.c>
        ProxyPreserveHost On
        ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ http://127.0.0.1:8888/$1$2
        ProxyPassMatch ^/(.+\.cfml)(/.*)?$ http://127.0.0.1:8888/$1$2
        # optional mappings
        #ProxyPassMatch ^/flex2gateway/(.*)$ http://127.0.0.1:8888/flex2gateway/$1
        #ProxyPassMatch ^/messagebroker/(.*)$ http://127.0.0.1:8888/messagebroker/$1
        #ProxyPassMatch ^/flashservices/gateway(.*)$ http://127.0.0.1:8888/flashservices/gateway$1
        #ProxyPassMatch ^/openamf/gateway/(.*)$ http://127.0.0.1:8888/openamf/gateway/$1
        #ProxyPassMatch ^/rest/(.*)$ http://127.0.0.1:8888/rest/$1
        ProxyPassReverse / http://127.0.0.1:8888/

</IfModule>

In the debugging info:

Time Stamp Mar 5, 2025 10:29 AM
Time Zone Etc/UTC
Locale English (us)
Remote IP 127.0.0.1

*Don't forget to tell us about your stack!*
**OS**: Alama Linux 9
**Java Version**: 21.0.6
**Tomcat Version**: 10.1.36
**Lucee Version**: 6.2.0.321

I found what I thought was the solution:

In tomcat/conf/web.xml add this.
I have to say this information is quite hard to find.

<filter>
  <filter-name>RemoteIpFilter</filter-name>
  <filter-class>org.apache.catalina.filters.RemoteIpFilter</filter-class>
</filter>

<filter-mapping>
  <filter-name>RemoteIpFilter</filter-name>
  <url-pattern>/*</url-pattern>
  <dispatcher>REQUEST</dispatcher>
</filter-mapping>

This will pass the IP to the debugging template correctly.

However, debugging only shows at all when set in Output Debugging checked, but then for any IP , when unchecked nothing
I have a template enabled for listed IPs in templates

Not sure what is going on here

Ok Update: This only works (sort of) when set in the WEB context admin so if you have the consolidated admin (server.cfm) it does not work when set there.
On a side note, the Plugin: Log Analyzer does not display the template correctly, there is no styled layout, just a bunch of text.

If you look at the output source, you will see you are redirecting the source back to localhost.

Thanks Terry, not sure what that means in terms of how to fix, but I have it working sort of now.

output and debugging will show if you run it directly from the server - or your dev machine pointing at localhost, otherwise you will need to set debugging up by routable ip address or domain name.

ie debugger.foodomain.foo vs 127.0.0.1