I have a Raspberry Pi serving a couple of static websites through Apache and doing some other stuff.
Now I’ve been gifted another Raspberry, so I installed NextCloudPi on it, and I would like to redirect a new subdomain (something like cloud.domain.com) from the first Raspberry to the new. I tried adding and enabling the following cloud.conf file in my main pi Apache’s sites-available directory but that breaks some of my other domains and does not redirect to the Nextcloud instance. What is the correct way of redirecting that subdomain?
Should I also redirect port 80? Also, I would like to use ssl with lets-encrypt for Nextcloud, as I am doing with the main domain. Should I just run certbot on the nextcloud pi instance as I did on the main pi, or is it more complicated than that?
One of them (the one sharing domain with ncp) is OK, the other two just won’t load as soon as I run a2ensite. They seem to load infinitely but they never end loading. The screen is blank.