When accessing virtualmin-nginx module from Webmin (Servers>Nginx Webserver) and selecting the link “Add a new Nginx virtual host”, I get the following error after entering all the applicable info and hitting the Create button:
Error - Perl execution failed
Can’t use string ("/home/testdomain1/public_html") as an ARRAY ref while “strict refs” in use at virtualmin-nginx-lib.pl line 247.
This on a fresh install with Debian 6 and all up-to-date.
I could however create a vhost from the Virtualmin side, but would prefer to do everything via only Webmin.
Any suggestions? Is this a known bug?
That does indeed sound like a bug… could you post that as a bug report using the Support link above?
Then Jamie will be able to work with you to figure out what’s going on there.
I have this problem.
who can help me?
Last webmin + virtualmin
-bash-3.2# nginx -v
nginx version: nginx/1.3.8
Had the same issue.
I fixed it by adding the following line at the end to /etc/nginx/nginx.conf
it will look like:
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
access_log /var/log/nginx/access.log main;
I installed nginx 1.2.8 described here http://wiki.nginx.org/Install#Official_Debian.2FUbuntu_packages with the key: wget http://nginx.org/keys/nginx_signing.key
cat nginx_signing.key | sudo apt-key add -
I just installed nginx module for virtualmin (4.01.gpl GPL) under centos 6.4, but I have the same problem, I added also the above line to the /etc/nginx/nginx.conf but the problem is still here… can you help?
Hello i had the same problem to. The include doesn’t help.
btw: a nginx server template would be nice
We have a box running Ubuntu Linux 12.04 - 3.98.gpl GPL. The include /etc/nginx/sites-enabled/*; is already in place and we still get exactly the same error as above.
Has anybody managed to solve this issue?
Me too. Got the Perl problem on line 247 - but I have already the ‘sites-enabled’ thing… Nothing helped.
I’m using a dedicated centos 6, all updated applied.
Just adding a ‘me too’ to the problem.
I have include /etc/nginx/sites-enabled/*; line at the end of http block in nginx.conf and see this error. Any solutions?
see this post : http://devkardia.com/blog/virtualmin-apache-and-nginx-reverse-proxy.html
when making new virtual-server, do not select “Enable Nginx website”
and after your virtual-server setup go to nginx in webmin servers, adjust document root and set Any IPv4 address
hope it helps some people on their way.
Same problem, using nginx-1.6 in CentOS 6.6 & virtualmin 4.11 gpl
Debian 7, Virtualmin 4.12
Ubuntu Linux 14.04.2
Webmin version 1.770
Virtualmin version 4.18.gpl
I’ve created it as an alternative to Virtualmin core Nginx module
RealGecko, Works great!
Thanks a lot
Now my only problem is that I want to have apache and nginx on some virtual servers, I have 2 Ip’s and apache and nginx running on different ports, but virtualmin won’t let me have both, do you know if its possible?
I never tried running both Apache and Nginx under Virtualmin, so I can’t tell you if it is possible
You have helped me a lot!!!
debian 8 linux