Fix LocationMatch scope when using a dedicated vhost

tags/0.1.8_el5
Daniel Berteaud 8 years ago
parent 6fc63e7980
commit 29f2690d33
  1. 8
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98LimeSurvey

@ -11,8 +11,6 @@ my $auth = (($limesurvey{'Authentication'} || 'http') eq 'http') ? "AuthName \"L
if ($limesurvey{'status'} eq 'enabled'){
my $path = ($alias eq '') ? '' : 'limesurvey/';
$OUT .=<<"END"
# LimeSurvey Configuration
@ -39,10 +37,14 @@ $alias
allow from $allow
Satisfy all
</Directory>
<LocationMatch "^/$path(index\.php/)?admin">
if ($alias ne ''){
$OUT .=<<'_EOF';
<LocationMatch "^/limesurvey/(index\.php/)?admin">
SSLRequireSSL on
$auth
</LocationMatch>
_EOF
}
<DirectoryMatch "/usr/share/limesurvey/(framework|console|installer/sql|locale|application/(logs|config)|docs)">
Deny from all
</DirectoryMatch>

Loading…
Cancel
Save