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

Loading…
Cancel
Save