Don't proxypass acme challenges
This commit is contained in:
parent
7fcbedf350
commit
faed2617e1
|
@ -20,6 +20,7 @@ my @groups = split(/[;,]/, ($domain->prop('AllowGroups') || ''));
|
||||||
# ProxyPass ?
|
# ProxyPass ?
|
||||||
if ($target =~ m|https?://[\d\w\.\-/]*|){
|
if ($target =~ m|https?://[\d\w\.\-/]*|){
|
||||||
$OUT .= " SetEnv proxy-nokeepalive 1\n" if ($keepalive eq 'yes');
|
$OUT .= " SetEnv proxy-nokeepalive 1\n" if ($keepalive eq 'yes');
|
||||||
|
$OUT .= " ProxyPass /.well-known/acme-challenge/ !\n";
|
||||||
$OUT .= " ProxyPass / $target\n";
|
$OUT .= " ProxyPass / $target\n";
|
||||||
$OUT .= " ProxyPassReverse / $target\n";
|
$OUT .= " ProxyPassReverse / $target\n";
|
||||||
$OUT .= " ProxyPreserveHost on\n" if ($preserve eq 'yes');
|
$OUT .= " ProxyPreserveHost on\n" if ($preserve eq 'yes');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user