Start the NGINX server

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

The NGINX server is located in the /opt/bitnami directory.

This server is disabled by default. To start it, follow these steps:

  • Run the following commands to enable the NGINX service, depending on your installation type:

    • Approach A (Bitnami installations using system packages):

        $ sudo mv /etc/monit/conf.d/nginx.conf.disabled /etc/monit/conf.d/nginx.conf
        $ sudo gonit reload
    • Approach B (Self-contained Bitnami installations):

        $ sudo mv /opt/bitnami/nginx/scripts/ /opt/bitnami/nginx/scripts/
  • Start the NGINX service:

      $ sudo /opt/bitnami/ start nginx

By default, NGINX will be started on port 1234. Check http://SERVER-IP:1234 in your browser to see the NGINX welcome page.

Last modification January 3, 2023