projects
/
drupal-init-tools.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new.sh: fix .htaccess to allow access to "/web" without the trailing slash
[drupal-init-tools.git]
/
libexec
/
new.sh
diff --git
a/libexec/new.sh
b/libexec/new.sh
index
385c141
..
a73b894
100755
(executable)
--- a/
libexec/new.sh
+++ b/
libexec/new.sh
@@
-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