Domain Name setup for WordPress GCP Bitnami NGINX
Provide a DNS name to your WordPress installation of Google Cloud on NGINX server. This will enable users to access your application just entering domain name of your website.

Page Contents
Setup Domain Name for WordPress with NGINX and SSL Certified by Bitnami and Automattic, on Google Cloud Platform.
To access your website using your domain name, first of all, you’ve to get a static IP Address for your WordPress. And only after that, you can process further.
Updating DNS settings
Now login to your domain name provider and edit DNS settings. In DNS settings you’ve to enter A name, and CNAME. That will be for example.com
- The A entry would be “@” and Target “your static IP” like 216.239.34.21.
- The CNAME Name entry would be “www” and target value “@”.
Now after doing all the above settings, please check that your new settings are on https://www.digwebinterface.com/. It may take a few hours to propagate all settings.
Your WordPress site with Domain is Live Now
Now you can check your domain example.com that is live now. By entering the direct IP address, it is not redirecting to your domain. To solve this follow the steps guided below.
Updating WordPress URL with IP
Open SSH Terminal of GCP

- Open Google Cloud Console Dashboard.
- Click Compute Engine> VM Instance.
- Now Click on SSH terminal link.

In the SSH terminal, type the following command
sudo -i
nano /opt/bitnami/apps/wordpress/htdocs/wp-config.php
Now you’ve to define wordpress application URL in its wp-config.php file.

REPLACE THIS:
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');
WITH:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
In the above command please replace example.com with your prefer domain address like www.example.com. Change example.com with your domain name.
Press ctrl+X(windows) or cmd+x(mac) and then Y to confirm the changes.
Reload the NGINX by following command.
nginx -s reload
You can access your domain now using IP address or DNS.