Thanks for your help, Juan; and sorry it took me a while to reply. As you might guess, I haven't worked with this configuration before.
There is no htaccess.conf
file, as far as I can tell. Here are the rest.
httpd-app.conf
<IfDefine USE_PHP_FPM>
<Proxy "unix:/opt/bitnami/php/var/run/moodle.sock|fcgi://moodle-fpm" timeout=300>
</Proxy>
</IfDefine>
<Directory "/opt/bitnami/apps/moodle/htdocs">
Options +Indexes +MultiViews
AllowOverride None
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfModule php5_module>
php_value max_execution_time 300
</IfModule>
<IfDefine USE_PHP_FPM>
<IfModule pagespeed_module>
ModPagespeed off
</IfModule>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://moodle-fpm"
</FilesMatch>
</IfDefine>
Include "/opt/bitnami/apps/moodle/conf/banner.conf"
</Directory>
httpd-vhosts.conf
<VirtualHost *:80>
ServerName moodle.example.com
ServerAlias www.moodle.example.com
DocumentRoot "/opt/bitnami/apps/moodle/htdocs"
Include "/opt/bitnami/apps/moodle/conf/httpd-app.conf"
</VirtualHost>
<VirtualHost *:443>
ServerName moodle.example.com
ServerAlias www.moodle.example.com
DocumentRoot "/opt/bitnami/apps/moodle/htdocs"
SSLEngine on
SSLCertificateFile "/opt/bitnami/apps/moodle/conf/certs/server.crt"
SSLCertificateKeyFile "/opt/bitnami/apps/moodle/conf/certs/server.key"
Include "/opt/bitnami/apps/moodle/conf/httpd-app.conf"
</VirtualHost>
httpd-prefix.conf
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
# App url moved to root
DocumentRoot "/opt/bitnami/apps/moodle/htdocs"
#Alias /moodle/ "/opt/bitnami/apps/moodle/htdocs/"
#Alias /moodle "/opt/bitnami/apps/moodle/htdocs"
Include "/opt/bitnami/apps/moodle/conf/httpd-app.conf"