Fix httpd template

This commit is contained in:
Daniel Berteaud 2013-11-19 13:06:53 +01:00
parent 5ee32bf478
commit d44e8002f3
1 changed files with 3 additions and 4 deletions

View File

@ -1,12 +1,11 @@
{
my $access = $dl{'access'} || 'private';
my $allow = ($access eq 'public')?'all':"$localAccess $externalSSLAccess";
my $auth = $dl{'Authentication'} || 'http';
my $authtype = $dl{'Authentication'} || 'http';
my $alias = (($dl{'AliasOnPrimary'} || 'enabled') eq 'enabled') ?
'Alias /dl /usr/share/dl' : '';
my $authuser = '';
my $authadmin = '';
if ($auth eq 'http'){
my $auth = '';
if ($authtype eq 'http'){
$auth =<<'EOF';
<FilesMatch "^(admin|rest)\.php">
SSLRequireSSL on