Understand the default Apache configuration

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

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

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

  • The installdir/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 installdir/apache2/conf/bitnami/bitnami-apps-prefix.conf file defines the list of applications to load.
    • The installdir/apache2/conf/bitnami/bitnami-apps-vhosts.conf file defines those applications that need to be served in a different virtual host.

By default, Bitnami applications are accessible at http://localhost/APP.

Check your Apache version using the apachectl command. Remember to execute it inside the Bitnami console:

$ apachectl -V
Last modification April 8, 2020