First, we’ll try to get the Nextcloud instance working before disabling htpps. (Do you really want to disable https?, it’s not very safe if you do).
What happens if you try to activate only the Apache configuration nextcloud.conf?
To check whether only the nextcloud.conf configuration is enabled, run the following command: ls /etc/apache2/sites-enabled/.
I want it to be disabled because i only use my cloud for myself locally at home. If i access it from outside i use my vpn. So https wouldn’t provide that much more security but every time i want to open it i get that annoying “unsafe website” message because my local ip obviously doesn’t have a valid ssl certificate. God i wish the “unsafe website” message would now be my only problem… Never touch a running system!
Currently ls /etc/apache2/sites-enabled/ looks like this:
root@nextcloudpi:/etc/apache2/sites-available# ls ../sites-enabled/
ncp-activation.conf ncp.conf nextcloud.conf
if i go into sites-available and run a2dissite *.conf the output of ls /etc/apache2/sites-enabled/ is empty so in fact nothing is running.
Now i run a2ensite nextcloud.conf and the output looks like this:
root@nextcloudpi:/etc/apache2/sites-available# a2ensite nextcloud.conf
Enabling site nextcloud.
To activate the new configuration, you need to run:
systemctl reload apache2
root@nextcloudpi:/etc/apache2/sites-available# systemctl restart apache2
root@nextcloudpi:/etc/apache2/sites-available# ls ../sites-enabled/
nextcloud.conf
In result i get the standard Apache 2 Default Page when calling the cloud: