Fix httpd template

tags/0.1.0
Daniel Berteaud 11 years ago
parent 3de2f3a54a
commit 18cb44a9e0
  1. 4
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98OpenSondage

@ -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…
Cancel
Save