Ubuntu 18.04 Ngnix module for webmin not working

Update 05-05-2021

Installing this module will solve the problem:



If you install the official module from



First install libwww-perl (ubuntu/debian based distro)

apt-get install libwww-perl

On fedora based

yum install libwww-perl


With your editor nano/vim

Location file: /usr/share/webmin/nginx/nginx-lib.pl

Line number = 199

Error: Unescaped left brace in regex is illegal here in regex; marked by <– HERE in m/server { <– HERE $/ at ./nginx-lib.pl line 199. Compilation failed in require at /usr/share/webmin/nginx/index.cgi line 6.

Problem : if ($line =~ /server {$/) {

Fix: if ($line =~ /server $/) {


It should work on debian 10/11 too.





Leave a Reply

Your email address will not be published. Required fields are marked *