NextCloud Change Https port to Costum / 443 to 4443

hi all and thanks for your help.

what must i do to change the https Port 443 to my costum 4443? Which files an where??

thanks a lot

You must tell your webserver to listen to port 4443 instead of 443. In apache
<VirtualHost _default_:4443>

In some versions you needed to add the port to /etc/apache2/ports.conf

1 Like

only this one file? or anythink else? i found many files like 000-default etc. My version is Nextcloud v.11

The file that is pointing to your ssl-connectin. In most cases it has ssl in the filename and at the moment it should point to 443…

Don’t forget to restart your apache…

sudo service apache2 restart