Rendering HTML files hack

Hi everyone,

This is my first post so please bare with if I’ve made any mistakes :slight_smile:

Anyway, I wanted to make a quick guide on how you can render HTML files w/ OwnCloud without actually modifying / configuring any files as the most recent discussion on this was over 3/4 years ago and I’m sure other people will be interested too.

Note: This will be done via docker & httpd apache

In any case, let’s get started;


All you need for this is docker and an SLL cert for another domain if your OwnCloud is running HTTPs. You can get this for free via

Note: I have only tested this with a domain, it may work without even having a domain on the apache container


  • Make a folder on OwnCloud - This will be where all the HTML files / directory’s will be located
  • From the OwnCloud container, find the full path to the folder mentioned above. For example, on my machine it’s /owncloud/files/Jake/files/Archives
  • Make a new docker container docker run -dit --name <CONTAINER NAME> -p <EXTERNAL PORT>:80 -v "<LINK TO ABOVE FOLDER>":/usr/local/apache2/htdocs/ httpd:2.4 and assign it a domain (i.e via a reverse proxy like nginx) w/ the SSL if needed
  • Open the OwnCloud admin apps page, select Show disabled apps and enable External Sites
  • Go to the Additional section of the admin page and then fill in the boxes with the domain link to the site / apache container we made earlier

…and your done, now you can edit / upload files to the OwnCloud folder and whenever you want to render it you can open the Apps menu and go to the site of the apache container. The apache website will also update all the HTML files without you needing to do anything as it’s mounted directly to the OwnCloud folder path!

Hope that helped anybody who was wondering how to do this, if you have any feedback please shoot!

1 Like

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