Thread:Project:Support desk/CSS not loading when using mediawiki behind apache mod proxy

Using Chrome inspector on http://{ip}/index.php/home_page i have this:

The link to stylesheet points to local IP but when the page loads behind mod_proxy with public IP, the links to the stylesheet points to the local IP causing not load the CSS.

In LocalSettings.php i have this:

$wgServer = WebRequest::detectServer;

$wgCanonicalServer = false;

Any idea why this happens? Thanks!