New virtualmin-nginx 2.4 package for CentOS/RHEL 7

Howdy all,

I’ve just rolled out version 2.4 of the virtualmin-nginx package for CentOS/RHEL repos to address an issue that led to Virtualmin not knowing how to stop/start/restart nginx. The symptom of this is that after creation a domain website would not be visible until nginx had been manually restarted.

This problem does not affect Ubuntu or Debian distributions, and so there is no need for a 2.4 release for those distributions.

If you’re running nginx on CentOS 7 or RHEL 7, after upgrading, run the following command to fix the start/stop/restart problem.

# cp /usr/libexec/webmin/virtualmin-nginx/config-CentOS-Linux-7.0-ALL /etc/libexec/webmin/virtualmin-nginx # systemctl restart webmin

If you have manually corrected the paths to start/stop/restart nginx in the module configuration, you don’t need to do this step (though it won’t hurt anything if you do). Note that if you’ve made any other changes to the virtualmin-nginx module configuration (e.g. if you have configured it to create vhosts in a directory or a separate file rather than in the nginx.conf), running this command will overwrite those changes and they’ll need to be made again. You can make a copy of the file before copying to compare to, if you’re unsure what changes you’ve made.