In the older versions of ownCloud we’ve always run, our extra web pages were always just dumped into the ownCloud directory on our server. With ownCloud 9 however, a security feature will fuss at you if there is anything in that directory that ownCloud isn’t expecting! Not a huge problem, but worth fixing.
My normal server configuration had the main www directory as the ownCloud main directory. First thing to do, was go into my Apache Server configuration file and point the server root, to the right place.
You can see the highlighted portion of the Apache server configuration file: /etc/apache2/sites-available/000-default.conf above, where I have changed the server root from /var/www/owncloud to just /var/www
Next you make the same change to your default-ssl.conf file so your self signed ssl certificate is covering all of your web root, not just the ownCloud directory.
Next thing to do, was reconfigure the ownCloud clients running on our desktop computers and phones.
On the desktops, first, close any running instances of the program. Do this from the software, or kill the process from your task manager.
Then, just navigate to your /home/username/.local/share/data/owncloud/owncloud.cfg file and change to the new ownCloud location as shown below:
After you update the file, all you need to do is restart ownCloud. It will ask you once again for your user password, and you’re done!
On the phones, just navigate to the ownCloud application, delete the current server, and add in the new one. Everything will sync back up happy as can be!
Once all of that was done, I could then add my new web pages, into separate folders like you would on any web server. In our case, the new folder, called manuals, is a large collection of all of the .pdf manuals for everything we own that requires one. From our tractor, to my metal bender and everything in between!
In the above screen shot, you will notice an index.html file. This is just a quick java redirect directly to the ownCloud directory, in case anyone just enters the IP address to the server, but forgets the fully qualified path to ownCloud.
Using the ownCloud external web page setting, we can now have quick and easy access to instruction manuals, from any computer or phone on the farm.
Now, no more errors in the ownCloud administrator console, and happy family who can find what they want, when they need it!