Can't create virtual server on a FRESH install

Hi,

Nginx website failed! : virtualmin-nginx::feature_setup failed : virtualmin-nginx::feature_add_web_webmail_redirect failed : flush_file_lines called on non-loaded file /etc/nginx/sites-available/test.com.conf 

I’m getting this on a test debian 12 server I’m trying to fix before deploying the fix on my production server.

After this error there are three interrogation points indicating: web-lib-funcs.pl (line 3882), web-lib-funcs.pl (line 4223), web-lib-funcs.pl (line 4223).

this is a fresh server with a fresh virtualmin installation.

To help anyone in the same situation, the only workaround I could find is this: after creating a virtual server and encountering the error, I navigate to the Nginx server configuration module in Webmin and delete the newly created virtual host. Now, I can return to the ‘Edit Virtual Server’ section in Virtualmin and activate ‘Nginx website enabled.’ This time, it’s created without any issues.

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version 2.111
Virtualmin version 7.10.0