How to enforce SSL on a Bitnami WordPress server

Bitnami servers come with Apache and WordPress SSL enabled with a self signed certificate. I will address replacing this certificate in a later post.

As I understand it Bitnami configures the AWS cloud image so that the application configuration overwrites the Apache configuration. This is described in their documentation.

The relevant section is

https-force

This will not work because it is overwritten by the WordPress configuration as highlighted. Instead you must follow these instructions,

Recent versions of BitNami apps ship three configuration files in the “/installdir/apps/myapp/conf/ folder: httpd-app.conf, httpd-prefix.conf and httpd-vhosts.conf.

http-force1

After making the required change to the application configuration file you must restart the server.

$ sudo /opt/bitnami/ctlscript.sh restart apache

4 responses to “How to enforce SSL on a Bitnami WordPress server”

  1. I agree that this is a bug with Bitnami’s documentation and their prescribed method will not work. The app’s vhosts configuration file doesn’t seem to be called from the Apache configuration files. Does it need to be included at some point in the bitnami.conf file?

Leave a comment