Nginx is a lightweight webserver that supports most of the functionality of Apache, but is faster and uses less memory. It is suited to websites that have a large amount of static content, or virtual machines with limited memory. For more information, see https://wiki.nginx.org/Main
Installing Nginx Support
Nginx can be setup during the Virtualmin installation, by passing in the
--bundle LEMP option to the
virtualmin-install.sh script. For more information, see the LAMP vs LAMP section of the Virtualmin Installation instructions.
Once Nginx support has been configured, you should be able to create virtual servers just as you would with Apache. However, on the Create Virtual Server page you will need to select Enable Nginx website? in the Enabled features section, instead of Enable Apache.
When creating a domain from the command-line API, you will need to use the
--virtualmin-nginx flag instead of
--web . For SSL websites, you will need to use
--virtualmin-nginx-ssl instead of
Similarly, when creating a domain via the remote API, you will need to use the
virtualmin-nginx= parameter instead of