Ubuntu 18.04 Ngnix module for webmin not working

Update 05-05-2021

Installing this module will solve the problem:

https://github.com/lewellyn/virtualmin-nginx

————————————————————————————

If you install the official module from

https://www.justindhoffman.com/sites/justindhoffman.com/files/nginx-0.10.wbm_.gz

 

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.

 

 

 

Views: 2821

3 Comments

Leave a Reply

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