azurewordpress-pro

Configure the WordPress with NGINX and SSL domain name

If you are using WordPress v3.3.1-5 or higher, only specify your domain name in the WordPress /opt/bitnami/wordpress/wp-config.php configuration file. Edit and replace the following lines as shown, remembering to replace the DOMAIN placeholder with the actual domain name you wish to use:

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');

with

define('WP_SITEURL', 'http://DOMAIN/');
define('WP_HOME', 'http://DOMAIN/');

NOTE: Your domain name should be correctly propagated for this to work. You can verify the new DNS record by using the Global DNS Propagation Checker and entering your domain name into the search field.

To use WordPress with multiple domains, use the Bitnami WordPress Multisite Stack instead.

Last modification February 9, 2023