Jelajahi Sumber

Ignore files from web

jmontoyaa 7 tahun lalu
induk
melakukan
6038583004
2 mengubah file dengan 4 tambahan dan 7 penghapusan
  1. 3 0
      .gitattributes
  2. 1 7
      .htaccess

+ 3 - 0
.gitattributes

@@ -2,10 +2,13 @@
 .gitattributes export-ignore
 .gitignore export-ignore
 .codeclimate.yml export-ignore
+.flintci.yml export-ignore
 .scrutinizer.yml export-ignore
 .styleci.yml export-ignore
 .travis.yml export-ignore
 .yamllint_config export-ignore
+.php_cs.dist export-ignore
+.php_cs export-ignore
 codesize.xml export-ignore
 phpcs.xml export-ignore
 

+ 1 - 7
.htaccess

@@ -1,11 +1,5 @@
 # Check that your Apache virtualhost have this settings:
 
-#<Directory "/var/www/chamilo-classic">
-#  AllowOverride All
-#  Order allow,deny
-#  Allow from all
-#</Directory>
-
 RewriteEngine on
 
 # http://my.chamilo.net/certificates/?id=123 to http://my.chamilo.net/certificates/index.php?id=123
@@ -60,7 +54,7 @@ RewriteRule ^service/(\d{1,})$ plugin/buycourses/src/service_information.php?ser
 RewriteRule ^([^/.]+)/?$ user.php?$1 [L]
 
 # Deny access
-RewriteRule ^(tests|.git) - [F,L,NC]
+RewriteRule ^(tests|.git|.env|.env.dist|config) - [F,L,NC]
 
 # Add caching of woff font files to avoid loading 2*15KB each time with Chamilo
 # default OpenSans font