Search code examples
wordpressnginxbitnami

Bitnami + Nginx, change IP address to domain


I have simple question - How do I change the Bitnami (lightsail) Nginx - Wordpress IP address to an domain?

I have followed the documentation here: https://docs.bitnami.com/aws/apps/wordpress-pro/administration/use-single-domain-nginx/

and when I go to my domain now I have Nginx welcome screen... I have to go to mydomain/wordpress to see 404 page of my website.

Where am I going wrong?

I am guessing there is some 'routing' that tells the server where to take website from. Unfortunately, I am new to Nginx...

Help would be appreciated.


Solution

  • Finally, after hours of changing .conf files I got it.

    The answer that pointed me in right direction: https://community.bitnami.com/t/point-domain-without-sub-directory-in-nginx-bitnami/70415/6 by davidg

    Just to quickly sum up... I changed this file: /home/bitnami/apps/wordpress/conf/nginx-prefix.conf from:

    location /wordpress {
       alias "/opt/bitnami/apps/wordpress/htdocs";
       include "/opt/bitnami/apps/wordpress/conf/nginx-app.conf";
    }
    

    to:

    location / {
        root "/opt/bitnami/apps/wordpress/htdocs";
        include "/opt/bitnami/apps/wordpress/conf/nginx-app.conf";
    }
    

    The bitnami documentation is a bit misleading (at least for me!) when it comes to changing the IP to domain.