Skip to content

Commit cf72df7

Browse files
committed
Merge branch 'master' of github.com:virtualmin/virtualmin-nginx
2 parents 04e055a + 6e1b125 commit cf72df7

12 files changed

+23
-17
lines changed

config-AlmaLinux-7.0-ALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
child_procs=4
77
php_socket=1
88
listen_mode=1

config-CentOS-Linux-7.0-ALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
child_procs=4
77
php_socket=1
88
listen_mode=1

config-CentOS-Stream-Linux-8.0-ALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
child_procs=4
77
php_socket=1
88
listen_mode=1

config-Oracle-Linux-8.0-ALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
child_procs=4
77
php_socket=1
88
listen_mode=1

config-Redhat-Enterprise-Linux-7.0-ALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
child_procs=4
77
php_socket=1
88
listen_mode=1

config-Rocky-Linux-7.0-ALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
child_procs=4
77
php_socket=1
88
listen_mode=1

config-debian-linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
add_to=/etc/nginx/sites-available
77
add_link=/etc/nginx/sites-enabled
88
child_procs=4

config-debian-linux-10.0-ALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
add_to=/etc/nginx/sites-available
77
add_link=/etc/nginx/sites-enabled
88
child_procs=4

config-openSUSE-Linux-15.0-ALL

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
nginx_config=/etc/nginx/nginx.conf
2+
nginx_cmd=/usr/sbin/nginx
3+
start_cmd=systemctl start nginx
4+
stop_cmd=systemctl stop nginx
5+
apply_cmd=systemctl reload nginx
6+
child_procs=4
7+
php_socket=1
8+
listen_mode=1

config-redhat-linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nginx_config=/etc/nginx/nginx.conf
22
nginx_cmd=/usr/sbin/nginx
33
start_cmd=systemctl start nginx
44
stop_cmd=systemctl stop nginx
5-
apply_cmd=systemctl restart nginx
5+
apply_cmd=systemctl reload nginx
66
child_procs=4
77
php_socket=1
88
listen_mode=1

module.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
desc=Nginx Webserver
22
category=servers
3-
version=2.30
3+
version=2.32
44
readonly=1

virtual_feature.pl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ sub feature_setup
253253
&$virtual_server::second_print($virtual_server::text{'setup_done'});
254254

255255
# Set up fcgid or FPM server
256-
my $mode = &virtual_server::template_to_php_mode($tmpl);
256+
my $mode = $d->{'default_php_mode'} || &virtual_server::template_to_php_mode($tmpl);
257+
delete($d->{'default_php_mode'});
257258
&$virtual_server::first_print($text{'feat_php'.$mode});
258259

259260
# Create initial config block for running PHP scripts. The port gets
@@ -832,12 +833,8 @@ sub feature_disable
832833
# Disable is done via default website page
833834
my $def_tpl = &read_file_contents("$virtual_server::default_content_dir/index.html");
834835
my %hashtmp = %$d;
835-
$hashtmp{'TMPLTTITLE'} = $virtual_server::text{'deftmplt_website_disabled'};
836-
$hashtmp{'TMPLTSLOGAN'} = $virtual_server::text{'deftmplt_disable_slog'};
837-
if ($d->{'disabled_why'}) {
838-
$hashtmp{'TMPLTCONTENT'} = $d->{'disabled_why'};
839-
}
840-
%hashtmp = &virtual_server::populate_default_index_page(%hashtmp);
836+
%hashtmp = &virtual_server::populate_default_index_page($d, %hashtmp);
837+
$def_tpl = &virtual_server::replace_default_index_page($d, $def_tpl);
841838
$def_tpl = &virtual_server::substitute_virtualmin_template($def_tpl, \%hashtmp);
842839
my $msg = $tmpl->{'disabled_web'} eq 'none' ?
843840
$def_tpl :
@@ -2892,6 +2889,7 @@ sub set_nginx_log_permissions
28922889
sub domain_server_names
28932890
{
28942891
my ($d) = @_;
2892+
return split(/\s+/, $d->{'dom_defnames'}) if ($d->{'dom_defnames'});
28952893
return ( $d->{'dom'}, "www.".$d->{'dom'}, "mail.".$d->{'dom'} );
28962894
}
28972895

0 commit comments

Comments
 (0)