How to configure nextcloud apache site

Dear community,

I use NextcloudPi on my RasperryPi 5, which works very well. The pi has two network interfaces (lan and wlan). I want ncp (and its apache server) to only listen on the lan interface because I want to run another server on port 443 on the wlan interface. I know this can be configured in the nextcloud.conf apache site. The file says “do not edit, automatically generated, changes will be overwritten”. How do I apply these changes permanently? I only want to replace with <VirtualHost 192.168.178.58:443>

Thank you very much and best regards,
Benedikt