Hi everyone,
I’m trying to implement a server-side solution on Enhance where Apache injects GeoIP-based headers into incoming HTTP requests, such as:
X-Geo-Country: BR
X-Geo-Region: SP
X-Geo-City: São Paulo
The goal is to pass this information to a self-hosted Google Tag Manager Server-Side container, — automatically populating the event_location object based on the user’s IP address.
The standard approach would be using mod_maxminddb with MaxMind’s GeoLite2 City database, and then exposing those values as headers using Header set directives inside the post.conf per-site config.
However:
The package libapache2-mod-maxminddb is not available via apt on the current Enhance setup.
Since Apache is fully managed by Enhance roles, I'm cautious about breaking the stack or introducing unsupported modules.
❓ Has anyone successfully injected GeoIP headers like this within the Enhance platform?
❓ Is there a recommended or supported way to enable this functionality without compromising updates or the internal Apache role?
I'm looking for a clean, safe solution that aligns with Enhance’s architecture and update mechanism.
Thanks in advance for any guidance!