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.
I’m encountering the exact same issue on my recently set up Debian 12 server. It’s surprising that this problem hasn’t received more attention, as it seems to be quite significant. My VPS is hosted on OVH CLOUD; I’m wondering if this problem might be specific to that hosting provider. Has anyone else experienced this or found a solution?
In my server, Apache is not listed in the bootup and shutdown sections; however, NGINX operates smoothly once I perform this ‘trick’
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.