Closed (won't fix)
Project:
GMap Module
Version:
5.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2008 at 03:44 UTC
Updated:
4 Nov 2012 at 00:52 UTC
When Drupal is served through a proxy (Apache proxypass) gmap_get_key function must be rewritten. This is a generic solutions in both cases:
function gmap_get_key() {
$key = variable_get('googlemap_api_key', '');
if (module_exists('keys_api')) {
$key = keys_api_get_key('gmap', $_SERVER["HTTP_X_FORWARDED_HOST"]? $_SERVER["HTTP_X_FORWARDED_HOST"] : $_SERVER["HTTP_HOST"]);
}
return $key;
}
Comments
Comment #1
podarokrelease unsupported
feel free to open issue against latest 7.x dev