Difficulty: Beginner
Estimated Time: 10 minutes

Welcome to the Troubleshooting guide for Bitnami Apache!

In this tutorial, you will learn, step by step, how to troubleshoot issues configuring the Apache server with SSL and how to creating redirections.

Assumptions and prerequisites

  • This tutorial shows WordPress as an example of a Bitnami image launched on a cloud instance. Check the deployment offering to quick deploy any Bitnami application on the cloud.
  • You have the public IP address of your application at hand.
  • You have an SSH key pair.

Visit our Community Site and ask any questions you may have about the SSL configuration. https://community.bitnami.com

How to enable HTTPS support for Apache

Step 1 of 3

Check the current SSL configuration

Lets check the status of the server and the current SSL configuration.

  1. Check first that all services are running:

    sudo /opt/bitnami/ctlscript.sh status

    At this point all services should be running. You can check the WordPress application by clicking the via browser at the web site tab in the right side of the screen.

  2. Check the already configured SSL certificate:

    curl https://localhost

    The image is configured with a self signed certificate by default. This means that the browser will throw an error any time someone visit your new website. You can also see the error in the Apache error log file:

    tail /opt/bitnami/apache2/logs/error_log

    In that case, you can see that the server certificate does NOT include an ID which matches the server name.

  3. In order to simulate a real domain, lets add a sample domain to the '/etc/hosts' file. In this example we will use "mydomain.com"

    sudo su -c "echo ' mydomain.com www.mydomain.com' >> /etc/hosts"

  1. Check the main Apache file where the certificates are configured the certificates. You can use your preferred editor. This examples uses 'nano'.

    sudo apt-get install nano

    sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf

    The port is configured to 443 and the default options for the default Virtual Host. The most important parameters for SSL are the CertificateFile and the CertificateKeyFile.

    SSLCertificateFile "/opt/bitnami/apache2/conf/server.crt" SSLCertificateKeyFile "/opt/bitnami/apache2/conf/server.key"

    Next examples will override the server.crt and server.key files. You can also modify the path and the names of the certificate files in this configuration file.