-
Notifications
You must be signed in to change notification settings - Fork 13
/
edit_sproxy.cgi
executable file
·36 lines (26 loc) · 1.06 KB
/
edit_sproxy.cgi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/local/bin/perl
# Show virtual host proxy options
use strict;
use warnings;
require './virtualmin-nginx-lib.pl';
our (%text, %in, %access);
&ReadParse();
my $server = &find_server($in{'id'});
$server || &error($text{'server_egone'});
&can_edit_server($server) || &error($text{'server_ecannot'});
&ui_print_header(&server_desc($server), $text{'proxy_title'}, "");
print &ui_form_start("save_sproxy.cgi", "post");
print &ui_hidden("id", $in{'id'});
print &ui_table_start($text{'proxy_header'}, undef, 2);
print &nginx_opt_input("proxy_buffer_size", $server, 10,
$text{'fcgi_buffer'});
print &nginx_opt_input("proxy_bind", $server, 20,
$text{'proxy_ip'});
print &nginx_param_input("proxy_set_header", $server,
$text{'proxy_name'}, $text{'proxy_value'});
print &nginx_textarea_input("proxy_pass_header", $server, 60, 5);
print &nginx_textarea_input("proxy_hide_header", $server, 60, 5);
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);
&ui_print_footer("edit_server.cgi?id=".&urlize($in{'id'}),
$text{'server_return'});