Configure the Open edX domain name

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

The edX server domain name is the default IP address or domain name assigned when the edX server is launched. In order to configure a different domain name, follow the steps below:

  • Log in to the server console.
  • Change the server domain using the bnconfig configuration tool:

    NOTE: Remember to replace the NEW_SERVER_DOMAIN placeholder in the example below with the new server domain name.

    $ sudo installdir/apps/edx/bnconfig --machine_hostname NEW_SERVER_DOMAIN
  • Rename or remove bnconfig configuration tool so that it does not change again at boot time:

    $ sudo mv installdir/apps/edx/bnconfig installdir/apps/edx/bnconfig.disabled
Last modification August 13, 2020