That is the expected behavior – VuFind is designed to use $_SERVER[‘HTTP_HOST’] rather than the config.ini setting. That setting is only used in places where
the host cannot be auto-detected (for example, during command line sitemap generation).
However, note that the serverUrl view helper should be handling HTTP_X_FORWARDED_HOST headers. See this code: