I need to change port 80 and 443 to something else for Nextcloud (Apache) and I just need to have my own solution confirmed or corrected.
- I change port 443 to 8443 in /etc/apache2/sites-available/default-ssl.conf
- I change port 80 to 880 in /etc/apache2/sites-available/000-default.conf
- I change to ‘overwrite.cli.url’ => https://exampel.ddns.com:8443/nextcloud in /var/www/nextcloud/config/config.php
- Open port 880 and 8443 in my router
My address to my Nextcloud will then be https://exampel.ddns.com:8443/nextcloud
Does this looks right? I know this really is a question about Apache aside from the “‘overwrite.cli.url’ =>”-bit but I hope you could confirm or correct my thinking if I’m very nice