mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 23:30:29 +01:00
45 lines
1.4 KiB
Perl
Executable File
45 lines
1.4 KiB
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Show location proxy options
|
|
|
|
use strict;
|
|
use warnings;
|
|
require './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'});
|
|
my $location = &find_location($server, $in{'path'});
|
|
$location || &error($text{'location_egone'});
|
|
|
|
&ui_print_header(&server_desc($server), $text{'proxy_title'}, "");
|
|
|
|
print &ui_form_start("save_lproxy.cgi", "post");
|
|
print &ui_hidden("id", $in{'id'});
|
|
print &ui_hidden("path", $in{'path'});
|
|
print &ui_table_start($text{'proxy_header'}, undef, 2);
|
|
|
|
print &nginx_opt_input("proxy_pass", $location, 50, $text{'proxy_url'});
|
|
|
|
print &nginx_opt_input("proxy_buffer_size", $location, 10,
|
|
$text{'fcgi_buffer'});
|
|
|
|
print &nginx_opt_input("proxy_bind", $location, 20,
|
|
$text{'proxy_ip'});
|
|
|
|
print &nginx_param_input("proxy_set_header", $location,
|
|
$text{'proxy_name'}, $text{'proxy_value'});
|
|
|
|
print &nginx_textarea_input("proxy_pass_header", $location, 60, 5);
|
|
|
|
print &nginx_textarea_input("proxy_hide_header", $location, 60, 5);
|
|
|
|
print &ui_table_end();
|
|
print &ui_form_end([ [ undef, $text{'save'} ] ]);
|
|
|
|
&ui_print_footer("edit_location.cgi?id=".&urlize($in{'id'}).
|
|
"&path=".&urlize($in{'path'}),
|
|
$text{'location_return'},
|
|
"edit_server.cgi?id=".&urlize($in{'id'}),
|
|
$text{'server_return'});
|