Hi, I’m trying to update the domain of my gibbon install from old.basedomain.org
to new.basedomain.org
, but I’m running into an issue. After logging in, it seems like all requests are being directed to old.basedomain.org
.
Here’s what I’ve done:
- Setup a new A record, pointing
new.basedomain.org
to the server IP (the old record forold.basedomain.org
is still active) - Setup new certs on the server for
new.basedomain.org
(confirmed the new certs are being properly loaded) - Updated my
gibbon.conf
,gibbon-le-ssl.conf
,apache2.conf
to reference the newServerName
, and reloaded apache2 - On the actual gibbon installation, i navigated to
Admin -> System Admin -> System Settings
, and then updated Base URL to point tohttp://new.basedomain.org
After doing all this, if i view my Server Info
on the gibbon install, i see this:
APACHE2HANDLER
Hostname:Port new.basedomain.org:0
...
APACHE ENVIRONMENT
SSL_TLS_SNI old.basedomain.org
HTTP_HOST old.basedomain.org
...
PHP VARIABLES
$_SERVER['SSL_TLS_SNI'] old.basedomain.org
$_SERVER['HTTP_HOST'] old.basedomain.org
So the APACHE2HANDLER
has the right info, but the PHP VARIABLES
(which reference the APACHE ENVIRONMENT
) and the APACHE ENVIRONMENT
still references the old domain. I have a feeling this is whats causing all requests after logging in to be directed to the old domain.
How can i fully finish the migration to the new domain? Is it something that can be done from the UI, or is there maybe some value i can modify in some table in the db for this? For now i cant delete the A record for old.basedomain.org
until this is resolved. From a DNS side and apache2 server side, things seem to be set up correctly, so i think it has to do with something I’ve done on gibbon, but im not sure.
Thanks in advance for the help!
EDIT:
So i looked into the db and didn’t find any reference to old.basedomain.org
. The closest i found to it was the absoluteURL in the gibbonSetting table, but the value there was correctly referencing the new domain.