We have recently switched from using Apache to using Nginx in our Virtualmin Professional setup. Virtualmin's Apache-related settings allow for lots of customization to generated virtual host blocks (), but Virtualmin's Nginx support does not seem to allow for as much customization.
For example, Virtualmin allows you to customize the IP address used to define VirtualHost blocks, i.e. for all addresses, or for a specific address.
But when creating virtual servers on Nginx, Virtualmin always inserts the system's IP address when writing out the associated Listen directive in the Nginx virtual host configuration. How can I change this behavior so that no IP address is added? The Listen directive doesn't require one to be set specifically.
Also how can I customize other portions of the default template Virtualmin uses to write out Nginx configuration files? I know I can add additional directives by way of the Nginx plugin configuration screen, but I want to customize the existing template that Virtualmin writes out for each new virtual server.
Thanks for any assistance provided!