Keywords: Moodle - Amazon Web Services - How to - Permissions
This is a bit of a workaround to get this working and may become redundant with the new M3.5 release and upgrade of the base used for the M3.5 Mobile app.
Setup your Bitnami WP site
Load in your H5P activities.
You will then find when you go to iframe these in to your moodle site you are going to come up against this next problem.
Refused to display 'https://www.google.com.ua/?gws_rd=ssl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
You will then need to access the httpd.conf file and comment out.
Header always setifempty X-Frame-Options SAMEORIGIN
# Header always setifempty X-Frame-Options SAMEORIGIN**
Header always merge X-Frame-Options SAMEORIGIN
# Header always merge X-Frame-Options SAMEORIGIN**
The main Apache configuration file is located at /opt/bitnami/apache2/conf/httpd.conf.
Goes without saying..restart apache
sudo /opt/bitnami/ctlscript.sh restart apache
This comes from the following conversations on using H5P on the Moodle Mobile app. So if you want the best of both worlds, this is a work around.
Probably for the Bitnami crew, the question I have is..
How much of a security risk is this ?
and is there a better way to do it?
As a note before you do this, understand why it is set like this..