I want to add this config to the webserver but the gui places it in the wrong place and does not let me save the configuration returning an error. Modifying manually lighttpd runs fine.
https://github.com/MichaIng/DietPi/blob/dev/.conf/dps_114/lighttpd.nextcloud.conf
The configuration in the provided link is accepted by the websrv service on a testbox without errors.
Sorry for wasting your time it works now. It is just sometimes I need to override the gui to test a configuration and it gets messy. Please close this.