Cotonti/Cotonti — Issue #848: Problem while using different web-server ports
Author: macik
Created: 2012-02-23 19:44:46+00:00
State: open

Due to some reason I have access to web server by 2 different ports, ex:
http://site.com (80 as default)
http://site.com:8080

But I can not setup CMS to use both at once
because $cfg['mainurl'] var can handle only one variant.

I solve this by parsing incoming link for port address and generate $cfg['mainurl'] based on it.

But it's a core hack, so may be better to made some complex solution.

I guess this problem also actual if we need to make both http and https connection to site.