diff --git a/example.gitignore b/example.gitignore
index e2f0124..42b85e4 100644
--- a/example.gitignore
+++ b/example.gitignore
@@ -12,8 +12,8 @@
 # vendor
 
 # Ignore configuration files that may contain sensitive information.
-sites/*/settings*.php
-sites/*/services*.yml
+sites/*/*settings*.php
+sites/*/*services*.yml
 
 # Ignore paths that contain user-generated content.
 sites/*/files
@@ -26,7 +26,8 @@ sites/simpletest
 # or delete the previous settings and uncomment the following ones, instead.
 
 # Ignore configuration files that may contain sensitive information.
-# */settings*.php
+# */*settings*.php
+# */*services*.php
 
 # Ignore paths that contain user-generated content.
 # */files
