azurephabricator

Understand the default Apache configuration

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.

Approach A: Bitnami installations using system packages

By default, Bitnami applications are accessible at http://SERVER-IP/.

The /opt/bitnami/apache2/conf/httpd.conf file contains the configuration of the Apache server. By default, it will load additional configurations from the following locations:

  • The /opt/bitnami/apache2/conf/bitnami/bitnami.conf file defines the main virtual host that will be used by the Apache Web server to respond to HTTP requests.

  • The /opt/bitnami/apache2/conf/bitnami/bitnami-ssl.conf file defines the main virtual host that will be used by the Apache Web server to respond to HTTPS requests.

  • The files in the /opt/bitnami/apache2/conf/vhosts/ directory define additional virtual hosts.

Approach B: Self-contained Bitnami installations

By default, Bitnami applications are accessible at http://SERVER-IP/APP.

There are two files holding the configuration of the Apache server:

  • The /opt/bitnami/apache2/conf/httpd.conf file is the main Apache configuration file.

  • The /opt/bitnami/apache2/conf/bitnami/bitnami.conf file defines which configuration for each application should be loaded by the Apache server. This file internally references the two files below:

    • The /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf file defines the list of applications to load.
    • The /opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf file defines those applications that need to be served in a different virtual host.
Last modification June 9, 2020