Gibbon domain migration

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:

  1. Setup a new A record, pointing new.basedomain.org to the server IP (the old record for old.basedomain.org is still active)
  2. Setup new certs on the server for new.basedomain.org (confirmed the new certs are being properly loaded)
  3. Updated my gibbon.conf, gibbon-le-ssl.conf, apache2.conf to reference the new ServerName, and reloaded apache2
  4. On the actual gibbon installation, i navigated to Admin -> System Admin -> System Settings, and then updated Base URL to point to http://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.

So im not sure why but it looks like things are working now. I made no changes since the post, but it looks like the HTTP_HOST and SSL_TLS_SNI vars in the APACHE ENVIRONMENT are all set correctly now and there are no more references to old.basedomain.org in the system.

Hi @akm Glad to hear it’s working, I suspect that the Base URL may have been cached in your local browser session data, and that upon logging out and back in at least once, it updated this session data.

1 Like