Fix httpd template

tags/0.1.3_el5
Daniel Berteaud 11 years ago
parent c178946437
commit 85cc0e73ef
  1. 4
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98LimeSurvey

@ -11,6 +11,8 @@ my $auth = (($limesurvey{'Authentication'} || 'http') eq 'http') ? "AuthName \"L
if ($limesurvey{'status'} eq 'enabled'){ if ($limesurvey{'status'} eq 'enabled'){
my $path = ($alias eq '') ? '' : 'limesurvey/';
$OUT .=<<"END" $OUT .=<<"END"
# LimeSurvey Configuration # LimeSurvey Configuration
@ -37,7 +39,7 @@ $alias
allow from $allow allow from $allow
Satisfy all Satisfy all
</Directory> </Directory>
<LocationMatch "^/{ ($alias eq '') ? '' : 'limesurvey/' }(index\.php/)?admin"> <LocationMatch "^/$path(index\.php/)?admin">
SSLRequireSSL on SSLRequireSSL on
$auth $auth
</LocationMatch> </LocationMatch>

Loading…
Cancel
Save