Hello sudhansu nayak
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
To link each WordPress instance to a particular IP address, you need to configure the virtual hosts in the NGINX server configuration file. Here are the steps to follow:
-Open the NGINX server configuration file for editing:
/opt/bitnami/nginx/conf/bitnami/bitnami.conf
-Locate the http block and add the following code to create a new virtual host for the second WordPress instance:
http {
...
server {
listen 192.0.2.2:80;
server_name example2.com www.example2.com;
root /opt/bitnami/apps/wordpress2/htdocs;
include "/opt/bitnami/apps/wordpress2/conf/nginx-app.conf";
}
}
Replace 192.0.2.2
with the IP address you want to use for the second WordPress instance, and example2.com
and www.example2.com
with the domain names you want to use for the second WordPress instance.
-Save the changes to the file and exit the editor.
-Restart the NGINX server to apply the changes:
Repeat the above steps to create additional virtual hosts for any other WordPress instances you have installed.
With this, each WordPress instance should be accessible using its own IP address and domain name.
Hope this helps.