Publish website within Google Cloud Moodle installation

Keywords: Moodle - Google Cloud Platform - How to - Services (Apache, MariaDB, MySQL…)

Description:
I would like to put a separate website inside my Google Cloud Moodle installation, but cannot figure out the right path. Moodle starts up fine if I go to my test site at https://34.130.79.164/ But what path do I use to get to the htdocs directory under Apache2? This doesnt work: https://34.130.79.164/htdocs/

Thanks!

Hi @drsteveherman,

The following guide explains how to add a custom PHP app:

https://docs.bitnami.com/aws/infrastructure/lamp/administration/create-custom-application-php/

You can configure a virtual host for the second site’s subdomain:

  <VirtualHost subdomain.yourdomain.com:80>
    ServerAlias *
    DocumentRoot /opt/bitnami/myapp
    <Directory "/opt/bitnami/myapp">
      Options -Indexes +FollowSymLinks -MultiViews
      AllowOverride All
      Require all granted
    </Directory>
  </VirtualHost>

Regards,
Michiel

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.