Fix httpd template
This commit is contained in:
parent
3de2f3a54a
commit
18cb44a9e0
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
my $access = $opensondage{'access'} || 'private';
|
my $access = $opensondage{'access'} || 'private';
|
||||||
my $allow = ($access eq 'public')?'all':"$localAccess $externalSSLAccess";
|
my $allow = ($access eq 'public')?'all':"$localAccess $externalSSLAccess";
|
||||||
my $auth = $opensondage{'Authentication'}' || 'http';
|
my $auth = $opensondage{'Authentication'} || 'http';
|
||||||
my $alias = (($opensondage{'AliasOnPrimary'} || 'enabled') eq 'enabled') ?
|
my $alias = (($opensondage{'AliasOnPrimary'} || 'enabled') eq 'enabled') ?
|
||||||
'Alias /opensondage /usr/share/opensondage' : '';
|
'Alias /opensondage /usr/share/opensondage' : '';
|
||||||
my $authuser = '';
|
my $authuser = '';
|
||||||
my $authadmin = '';
|
my $authadmin = '';
|
||||||
if ($auth eq 'http'){
|
if ($auth eq 'http'){
|
||||||
$authuser =<<'EOF';
|
$authuser =<<'EOF';
|
||||||
<FilesMatch "^($|(index|adminstubs|info_sondage)\.php)">
|
<FilesMatch "^($|(index|adminstubs|infos_sondage)\.php)">
|
||||||
SSLRequireSSL on
|
SSLRequireSSL on
|
||||||
AuthName "OpenSondage"
|
AuthName "OpenSondage"
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
|
|
Loading…
Reference in New Issue
Block a user