{"action":"created","issue":{"url":"https://api.github.com/repos/maxmind/mod_maxminddb/issues/30","repository_url":"https://api.github.com/repos/maxmind/mod_maxminddb","labels_url":"https://api.github.com/repos/maxmind/mod_maxminddb/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/maxmind/mod_maxminddb/issues/30/comments","events_url":"https://api.github.com/repos/maxmind/mod_maxminddb/issues/30/events","html_url":"https://github.com/maxmind/mod_maxminddb/issues/30","id":90476064,"number":30,"title":"ENV variables set by mod_maxminddb are not visible within VirtualHost, but visible inside Directory or Location block","user":{"login":"yaric1","id":13021823,"avatar_url":"https://avatars.githubusercontent.com/u/13021823?v=3","gravatar_id":"","url":"https://api.github.com/users/yaric1","html_url":"https://github.com/yaric1","followers_url":"https://api.github.com/users/yaric1/followers","following_url":"https://api.github.com/users/yaric1/following{/other_user}","gists_url":"https://api.github.com/users/yaric1/gists{/gist_id}","starred_url":"https://api.github.com/users/yaric1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaric1/subscriptions","organizations_url":"https://api.github.com/users/yaric1/orgs","repos_url":"https://api.github.com/users/yaric1/repos","events_url":"https://api.github.com/users/yaric1/events{/privacy}","received_events_url":"https://api.github.com/users/yaric1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/maxmind/mod_maxminddb/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-23T19:52:06Z","updated_at":"2016-02-15T21:50:15Z","closed_at":null,"body":"First rewrite rule does not work, but exactly the same second does within same virtual host.\r\n\r\nhttpd.conf:\r\n```\r\nRemoteIPHeader IPTEST\r\n\r\n<VirtualHost>\r\n\r\nMaxMindDBEnable On\r\n\r\nMaxMindDBFile CITY_DB /bigdisk0/geoip/share/GeoIP/GeoIP2-City.mmdb\r\n\r\nMaxMindDBEnv GEOIP_REGION_CODE  CITY_DB/subdivisions/0/iso_code\r\n\r\n RewriteCond %{ENV:GEOIP_REGION_CODE} SH\r\n RewriteRule . http://www.some1.com/de/ww?ff=%{ENV:GEOIP_REGION_CODE} [L,R=301]\r\n\r\n<Location />\r\n RewriteCond %{ENV:GEOIP_REGION_CODE} SH\r\n RewriteRule . http://www.some2.com/de/ww?ff=%{ENV:GEOIP_REGION_CODE} [L,R=301]\r\n</Location>\r\n\r\n</VirtualHost>\r\n```\r\n\r\nwget.exe --header \"IPTEST: 77.6.124.167\" -O - http://10.30.11.171/bin/env.cgi\r\n --2015-06-23 15:29:03-- http://10.30.11.171/bin/env.cgi\r\n Connecting to 10.30.11.171:80... connected.\r\n HTTP request sent, awaiting response... 301 Moved Permanently\r\n Location: http://www.some2.com/de/ww?ff=SH [following]\r\n --2015-06-23 15:29:03-- http://www.some2.com/de/ww?ff=SH\r\n"},"comment":{"url":"https://api.github.com/repos/maxmind/mod_maxminddb/issues/comments/184409387","html_url":"https://github.com/maxmind/mod_maxminddb/issues/30#issuecomment-184409387","issue_url":"https://api.github.com/repos/maxmind/mod_maxminddb/issues/30","id":184409387,"user":{"login":"yaric1","id":13021823,"avatar_url":"https://avatars.githubusercontent.com/u/13021823?v=3","gravatar_id":"","url":"https://api.github.com/users/yaric1","html_url":"https://github.com/yaric1","followers_url":"https://api.github.com/users/yaric1/followers","following_url":"https://api.github.com/users/yaric1/following{/other_user}","gists_url":"https://api.github.com/users/yaric1/gists{/gist_id}","starred_url":"https://api.github.com/users/yaric1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaric1/subscriptions","organizations_url":"https://api.github.com/users/yaric1/orgs","repos_url":"https://api.github.com/users/yaric1/repos","events_url":"https://api.github.com/users/yaric1/events{/privacy}","received_events_url":"https://api.github.com/users/yaric1/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T21:50:15Z","updated_at":"2016-02-15T21:50:15Z","body":"I compiled from master and what a relief :) Confirmed, fixed! Thank you guys, you saved us!\r\nFinally we can migrate from mod_geoip2 to mod_maxminddb"}}