Fix httpd template
This commit is contained in:
parent
5ee32bf478
commit
d44e8002f3
|
@ -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…
Reference in New Issue
Block a user