On my server i'm using nginx on port
8081 and apache on port
80 as an internal proxy to nginx.
And i have multiple domains
When i leave the
$base_url empty in the config code igniter tries to guess the right base url , it shows that the base url is
localhost:8081 instead of
When i set it manually:
It doesn't work when i open the other domains like
domain.org for example because the
$base_url is still on the
.com domain .
Is there any way to make code igniter smarter guessing the right