Creating Nginx virtual hosts automatically when setting up new virtual servers?

Is there a way to do this so that virtual hosts in Nginx are created just like they would be for Apache? I’ve got Nginx and the Nginx Webmin module installed.