Port Forwwarding and Nextcloud

I have Nextcloud 18 up and running on my Diet-Pi Raspberry PI. My Nextcloud directory is at /var/www/html/nextcloud following the tutorial at https://pimylifeup.com/raspberry-pi-nextcloud-server. The only thing I can’t figure out is how to access it from outside via No-ip and an alternate port. I would like to be able to do something like https://finch.onthewifi.org/nextcloud:41442 which would be port forwarded by my Asus router to internal Raspberry PI IP & port 443. If I leave off the /nextcloud and just do https://finch.onthewifi.org:41442, I get the apache2 yup its up page.

it would be https://finch.onthewifi.org:41442/nextcloud

and you have to adjust your config.php -> https://docs.nextcloud.com/server/18/admin_manual/configuration_server/config_sample_php_parameters.html?#proxy-configurations

1 Like