Nginx - virtual_feature.pl script adds a bad directive to nginx domain server config file

As an example, when I install the wordpress script to a virtual-server running nginx, the virtual_feature.pl file adds an outdated or incorrect directive to the server config, causing it to fail testing.

That old directive is: fastcgi_read_timeout

The correct directive is: fastcgi_param read_timeout

Replacing this value on the following lines fixes the issue:

file: /usr/share/webmin/virtualmin-nginx/virtual_feature.pl

1023:# Returns the timeout set by fastcgi_read_timeout 1029: my $t = &find_value("fastcgi_read_timeout", $server); 1032:return &get_default("fastcgi_read_timeout"); 1036:# Sets the fcgi timeout with fastcgi_read_timeout 1043: &save_directive($server, "fastcgi_read_timeout", [ $max || 9999 ]);

However, until this change to my files will be overwritten by the next update unless it's merged in the tree.

Thanks!

Status: 
Closed (fixed)

Comments

I guess Nginx renamed that directive - do you know in which version fastcgi_read_timeout was obsoleted? Or if you don't, which version of Nginx are you running there?

I am running 1.6.0 stable. I don't know when it was depreciated. All the other parameters are using similar new nomenclature:

fastcgi_param the_parameter

Thanks - I will have Virtualmin use the new format directive in the next release of the Nginx plugin.

Automatically closed -- issue fixed for 2 weeks with no activity.