Update the IP address or hostname
Composr requires updating the IP address/domain name if the machine IP address/domain name changes. To configure it to run on a specific IP address or domain name, run the command below. Remember to replace the NEW_DOMAIN placeholder with an appropriate value:
IMPORTANT: Be sure that your domain is propagated. Otherwise, this will not work. You can verify the new DNS record by using the Global DNS Propagation Checker and entering your domain name into the search field.
$ sudo /opt/bitnami/configure_app_domain --domain NEW_DOMAIN
NOTE: If the result of the previous command shows a command not found error, execute the following command instead:
$ sudo /opt/bitnami/composr/bnconfig --machine_hostname NEW_DOMAIN
Once configured, rename the bnconfig utility to bnconfig.disabled to stop it from running automatically on system restart and resetting the configured domain name.
$ sudo mv /opt/bitnami/composr/bnconfig /opt/bitnami/composr/bnconfig.disabled
You can also change your hostname by modifying it in your hosts file. Enter the new hostname using your preferred editor.
$ sudo nano /etc/hosts
Add a new line with the IP address and the new hostname. Here’s an example. Remember to replace the IP-ADDRESS and DOMAIN placeholders with the correct IP address and domain name.