Fix httpd template

This commit is contained in:
Daniel Berteaud 2014-08-13 11:29:29 +02:00
parent c178946437
commit 85cc0e73ef
1 changed files with 3 additions and 1 deletions

View File

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