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

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?

Just check to see if apache has been installed as per the reported bug

Webmin -> Bootup and Shutdown

if it has then Stop it and delete it at boot time → reboot (then you should be left with an active nginx webserver

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.

No Apache on my server either.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.