Nginx and Virtualmin - When deleting a virtual server, the site file is not fully removed causing issues on site recreation

Under nginx, when a virtual server is deleted, the symlink is removed from /etc/nginx/sites-enabled but the configuration file remains in /etc/nginx/sites-available

If the domain is recreated, all of the default directives are appended to the old file in /etc/nginx/sites/available , causing double configurations, and for the nginx config to fail.

I have written a shell script that deletes this file, but it's still a bug in the system.

Status: 
Closed (fixed)

Comments

Thanks for pointing this out - this will be fixed in the next Virtualmin Nginx plugin release.

Automatically closed -- issue fixed for 2 weeks with no activity.