mod_maxminddb icon indicating copy to clipboard operation
mod_maxminddb copied to clipboard

MaxMindDBEnable not work inside LocationMatch

Open phpsyscoder opened this issue 8 years ago • 4 comments

Dear Team i try to disable GEO-IP Lookups for static files in my vhost.conf, with:

<LocationMatch "\.(css|js|json|jpg|jpeg|gif|ico|png|bmp|pict|csv|doc|pdf|pls|ppt|tif|tiff|eps|ejs|swf|midi|mid|ttf|eot|woff|woff2|otf|svg|svgz|webp|docx|xlsx|xls|pptx|ps|class|jar|txt)$">
MaxMindDBEnable Off
</LocationMatch>  

But its ignored by mod_maxminddb Any ideas?

phpsyscoder avatar Apr 27 '17 12:04 phpsyscoder

Currently, I believe, this will only work in Location and Directory blocks. Apache's configuration merging is a bit restricting, but we will take a look at what would be involved to implement this.

oschwald avatar Apr 27 '17 20:04 oschwald

Any news?

phpsyscoder avatar Aug 21 '21 09:08 phpsyscoder

@petrich, we did briefly look at improving config merging, which may resolve this but not much came of it. I am not sure when or if we will look into it further. Many of our users have either moved off of Apache altogether or do GeoIP lookups in their application directly.

oschwald avatar Aug 23 '21 14:08 oschwald

(oki) ... nevertheless Thank you

phpsyscoder avatar Aug 23 '21 16:08 phpsyscoder