Change Nextcloud(Pi) Port 80


I just have installed a new nextcloudpi on my raspberry pi 4 with success. I now want to use another port 81 instead of 80 for access and letsenrypt for instance (my router itself uses port 80 for some services). But I failed in order to reconfigure the settings ()apache), plus in the websettings I can only read port 80 everywhere.

Can someone tell me what I only have to change in order to change the port 80 to 81?

Thany you very much,

best wishes

Your apache configuration should contain the port. What is in /etc/apache2/sites-available/

i have heard that ncp does not yet feature this with it’s built-in assistents… so it is up to you to do it manually… though i’m not sure if letsencrypt would allow other ports than 80/443, yet.

Sadly true, there is no ncp tool for that as yet, one needs to set alternate ports manually in :
/etc/apache2/ports.conf and /etc/apache2/sites-available/nextcloud.conf
and also run letsencrypt manually using dns to verify

1 Like