Getting mod_geoip to work with mod_wsgi in Apache 2.2.17
题
I'd like to access the GEOIP_COUNTRY_CODE
environment variable from within Django running on mod_wsgi in daemon mode. The problem is, I can see the variable from within PHP scripts running on the server but it seems that it is not passed through WSGI to my Django site.
request.META.get('GEOIP_COUNTRY_CODE')
does not work.
Is there something like WSGIPassAuthorization
for additional environment variables in mod_wsgi?
没有正确的解决方案
不隶属于 StackOverflow