| Server IP : 172.67.134.114 / Your IP : 162.159.115.42 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/virtual-server/ |
Upload File : |
#!/usr/bin/perl
# Delete several proxy balancers
require './virtual-server-lib.pl';
&ReadParse();
&licence_status();
$d = &get_domain($in{'dom'});
&can_edit_domain($d) && &can_edit_forward() ||
&error($text{'balancers_ecannot'});
&has_proxy_balancer($d) || &error($text{'balancers_esupport'});
&error_setup($text{'balancers_derr'});
# Find them and delete them
@d = split(/\0/, $in{'d'});
@d || &error($text{'balancers_denone'});
&obtain_lock_web($d);
@balancers = &list_proxy_balancers($d);
foreach $path (@d) {
($b) = grep { $_->{'path'} eq $path } @balancers;
if ($b) {
$err = &delete_proxy_balancer($d, $b);
&error($err) if ($err);
}
}
# Log and return
&release_lock_web($d);
&set_all_null_print();
&run_post_actions();
&webmin_log("delete", "balancers", scalar(@d), { 'dom' => $d->{'dom'} });
&redirect("list_balancers.cgi?dom=$in{'dom'}");