]> git.openstreetmap.org Git - chef.git/commitdiff
wordpress: Allow access to robots.txt and similar files
authorGrant Slater <github@firefishy.com>
Wed, 15 Mar 2023 14:03:35 +0000 (14:03 +0000)
committerGrant Slater <github@firefishy.com>
Wed, 15 Mar 2023 14:03:35 +0000 (14:03 +0000)
cookbooks/wordpress/templates/default/apache.erb

index 8a8438c41386d11f3cfa9c4226c19fe4147e98bc..bace93956726c240848572330d2af2887c2d43ef 100644 (file)
@@ -89,7 +89,7 @@
     Require all denied
   </Directory>
 
-  <Files ~ "\.(txt|md)$">
+  <Files ~ "(?<!robots|ads|security|humans)\.(txt|md)$">
     Require all denied
   </Files>