Fix ProxyPass handling logic

This commit is contained in:
Daniel Berteaud 2016-02-09 22:03:27 +01:00
parent 3e06a10d8a
commit 2d98e8f2f0
1 changed files with 4 additions and 4 deletions

View File

@ -21,14 +21,14 @@ my @groups = split(/[;,]/, ($domain->prop('AllowGroups') || ''));
# ProxyPass ?
if ($target =~ m|https?://[\d\w\.\-/]*|){
$OUT .= " SetEnv proxy-nokeepalive 1\n" if ($keepalive eq 'yes');
if ($proxy_acme eq 'disabled'){
$OUT .= " ProxyPass /.well-known/acme-challenge/ !\n";
}
elsif ($proxy_acme eq 'only'){
if ($proxy_acme eq 'only'){
$OUT .= " ProxyPass /.well-known/acme-challenge/ $target" . ".well-known/acme-challenge/\n";
$OUT .= " ProxyPassReverse / $target" . ".well-known/acme-challenge/\n";
}
else{
if ($proxy_acme eq 'disabled'){
$OUT .= " ProxyPass /.well-known/acme-challenge/ !\n";
}
$OUT .= " ProxyPass / $target\n";
$OUT .= " ProxyPassReverse / $target\n";
}