|
|
|
@ -1,14 +1,14 @@ |
|
|
|
|
{ |
|
|
|
|
my $access = $opensondage{'access'} || 'private'; |
|
|
|
|
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') ? |
|
|
|
|
'Alias /opensondage /usr/share/opensondage' : ''; |
|
|
|
|
my $authuser = ''; |
|
|
|
|
my $authadmin = ''; |
|
|
|
|
if ($auth eq 'http'){ |
|
|
|
|
$authuser =<<'EOF'; |
|
|
|
|
<FilesMatch "^($|(index|adminstubs|info_sondage)\.php)"> |
|
|
|
|
<FilesMatch "^($|(index|adminstubs|infos_sondage)\.php)"> |
|
|
|
|
SSLRequireSSL on |
|
|
|
|
AuthName "OpenSondage" |
|
|
|
|
AuthType Basic |
|
|
|
|