I’ve just installed Nextcloud on my VPS using Debian 10, and a plain LAMP stack. I’ve not bought a domain name, so I’m only using a self-signed SSL certificate on my installation (and I’m forcing SSL via the Virtual host 000-default.conf). Everything works fine except for the issue of that when I navigate to my server IP, I’m greeted by the default apache page. I’ve tried to force the path in the default-ssl.conf, to use DocumentRoot /var/www/html/nextcloud but when I add the nextcloud to the end of the line I get a 500 server error. Is there another way to rewrite the virtual hosts files, or force a redirection to the nextcloud installation.
Here’s a small version of my default-ssl.conf file:
On another note, does one need to use the nextcloud.conf (located in: /etc/apache2/sites-available) that the nextcloud documentation sates that one should create? I’ve just used the 000-default.conf and the default-ssl.conf, so could I just delete the nextcloud.conf file or is used by nextcloud somehow otherwise?