|
|
@ -11,7 +11,7 @@ my $auth = (($limesurvey{'Authentication'} || 'http') eq 'http') ? "AuthName \"L |
|
|
|
|
|
|
|
|
|
|
|
if ($limesurvey{'status'} eq 'enabled'){ |
|
|
|
if ($limesurvey{'status'} eq 'enabled'){ |
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"END" |
|
|
|
$OUT .=<<"END"; |
|
|
|
|
|
|
|
|
|
|
|
# LimeSurvey Configuration |
|
|
|
# LimeSurvey Configuration |
|
|
|
$alias |
|
|
|
$alias |
|
|
@ -38,6 +38,7 @@ $alias |
|
|
|
Satisfy all |
|
|
|
Satisfy all |
|
|
|
</Directory> |
|
|
|
</Directory> |
|
|
|
END |
|
|
|
END |
|
|
|
|
|
|
|
|
|
|
|
if ($alias ne ''){ |
|
|
|
if ($alias ne ''){ |
|
|
|
$OUT .=<<'END'; |
|
|
|
$OUT .=<<'END'; |
|
|
|
<LocationMatch "^/limesurvey/(index\.php/)?admin"> |
|
|
|
<LocationMatch "^/limesurvey/(index\.php/)?admin"> |
|
|
@ -45,6 +46,7 @@ if ($alias ne ''){ |
|
|
|
$auth |
|
|
|
$auth |
|
|
|
</LocationMatch> |
|
|
|
</LocationMatch> |
|
|
|
END |
|
|
|
END |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
$OUT .=<<'END'; |
|
|
|
$OUT .=<<'END'; |
|
|
|
<DirectoryMatch "/usr/share/limesurvey/(framework|console|installer/sql|locale|application/(logs|config)|docs)"> |
|
|
|
<DirectoryMatch "/usr/share/limesurvey/(framework|console|installer/sql|locale|application/(logs|config)|docs)"> |
|
|
@ -52,6 +54,7 @@ $OUT .=<<'END'; |
|
|
|
</DirectoryMatch> |
|
|
|
</DirectoryMatch> |
|
|
|
|
|
|
|
|
|
|
|
END |
|
|
|
END |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
$OUT .= "# LimeSurvey is disabled\n"; |
|
|
|
$OUT .= "# LimeSurvey is disabled\n"; |
|
|
|