new.sh: fix .htaccess to allow access to "/web" without the trailing slash
authorAntonio Ospite <ao2@ao2.it>
Tue, 21 Nov 2017 10:00:08 +0000 (11:00 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 21 Nov 2017 10:00:08 +0000 (11:00 +0100)
libexec/new.sh

index 385c141..a73b894 100755 (executable)
@@ -120,7 +120,7 @@ echo "Uncomment and customize the values in the bootstrap.conf file."
 # Add some basic access control to protect sensitive files like bootstrap.conf
 cat > .htaccess <<EOF
 Options -Indexes
 # Add some basic access control to protect sensitive files like bootstrap.conf
 cat > .htaccess <<EOF
 Options -Indexes
-SetEnvIf Request_URI "/web/.*" access_granted
+SetEnvIf Request_URI "/web(/.*)?$" access_granted
 Order allow,deny
 Allow from env=access_granted
 EOF
 Order allow,deny
 Allow from env=access_granted
 EOF