mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Add option for ProxyPreserveHost https://forum.virtualmin.com/t/looking-to-set-up-a-or-multiple-reverse-proxies/121016/19
This commit is contained in:
@ -637,6 +637,7 @@ mod_proxy_preserve=Preserve original Host: header
|
||||
mod_proxy_timeout=Proxy request timeout in seconds
|
||||
mod_proxy_etimeout=Proxy request timeout must be a number of seconds
|
||||
mod_proxy_via=Set Via: headers
|
||||
mod_proxy_preserve=Preserve original HTTP host
|
||||
mod_proxy_not=None
|
||||
|
||||
mod_log_agent_default=Default
|
||||
|
@ -25,6 +25,7 @@ $rv = [ [ 'ProxyRequests', 0, 13, 'virtual', undef, 11 ],
|
||||
[ 'ProxyMaxForwards', 0, 13, 'virtual', 2.0 ],
|
||||
[ 'ProxyPreserveHost', 0, 13, 'virtual', 2.031 ],
|
||||
[ 'ProxyTimeout', 0, 13, 'virtual', 2.031 ],
|
||||
[ 'ProxyPreserveHost', 0, 13, 'virtual', 2.3 ],
|
||||
[ 'ProxyVia', 0, 13, 'virtual', 2.0 ] ];
|
||||
return &make_directives($rv, $_[0], "mod_proxy");
|
||||
}
|
||||
@ -291,7 +292,16 @@ sub save_ProxyVia
|
||||
return &parse_choice("ProxyVia", "");
|
||||
}
|
||||
|
||||
|
||||
sub edit_ProxyPreserveHost
|
||||
{
|
||||
return (1, $text{'mod_proxy_preserve'},
|
||||
&choice_input($_[0]->{'value'}, "ProxyPreserveHost", "",
|
||||
"$text{'yes'},on", "$text{'no'},off", "$text{'default'},"));
|
||||
}
|
||||
sub save_ProxyPreserveHost
|
||||
{
|
||||
return &parse_choice("ProxyPreserveHost", "");
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
Reference in New Issue
Block a user