The original setting are
define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
And I change to follow domain name, but it still show IP address when I use it to access to my website
define(‘WP_SITEURL’, ‘https://stevehctsai.net’);
define(‘WP_HOME’, ‘https://stevehctsai.net’);
BTW, when I search redirection way on Bitnami support website found a file call bitnami.config, but after I change the file can’t access my website anymore till I change it back, I think this file is the one I should change, but I don’t know the right code.
https://wiki.bitnami.com/Components/Apache
How to access to my application from only one domain?
The default Bitnami server configuration allows you to access to the server from different methods: using the Amazon EC2 or Azure domain name (f.e. ec2-xx-yy-zz.amazonaws.com or xxxx.cloudapp.net), using the IP address directly or using the Bitnami Cloud Hosting domain (f.e. xxxx.bitnamiapp.com).
If you want to redirect all these domains to your own domain, you can configure Apache server to redirect all these requests to the same domain.
You can add the following configuration into the /opt/bitnami/apache2/conf/bitnami/bitnami.conf file. Note that you have to replace “example.com” with your own domain.
<VirtualHost _default_:80>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^example.com$
RewriteCond %{HTTP_HOST} !^(localhost|127.0.0.1)
RewriteRule ^(.*)$ https://example.com$1 [R=permanent,L]
…
<VirtualHost _default_:443>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^example.com$
RewriteCond %{HTTP_HOST} !^(localhost|127.0.0.1)
RewriteRule ^(.*)$ https://example.com$1 [R=permanent,L]
…
Then restart the Apache server.