Fix httpd template

tags/smeserver-dl-0.2.1-1
Daniel Berteaud 11 years ago
parent 5ee32bf478
commit d44e8002f3
  1. 7
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl

@ -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

Loading…
Cancel
Save