Index: lib/ezutils/classes/ezsys.php
===================================================================
--- lib/ezutils/classes/ezsys.php	(Revision 20524)
+++ lib/ezutils/classes/ezsys.php	(Arbeitskopie)
@@ -595,7 +595,11 @@
     */
     static function hostname()
     {
-        $retVal = eZSys::serverVariable( 'HTTP_HOST' );
+        $retVal = eZSys::serverVariable( 'HTTP_X_FORWARDED_HOST', true );
+        if ( !$retVal )
+        {
+            $retVal = eZSys::serverVariable( 'HTTP_HOST' );
+        }
         return  $retVal;
     }
 
