From 932ceff2f1bba37b65a8a301d37146b9b0191277 Mon Sep 17 00:00:00 2001 From: Agel_Nash Date: Thu, 22 Feb 2018 01:46:18 +0500 Subject: [PATCH] Update .gitignore and .htaccess files --- .gitignore | 68 +++++++++++++++++-- assets/.thumbs/.htaccess | 5 ++ assets/{cache/images => backup}/.htaccess | 0 assets/cache/{updater => }/.htaccess | 0 assets/cache/updater/ht.access | 2 - assets/docs/.htaccess | 6 +- assets/export/.htaccess | 5 ++ assets/files/.htaccess | 5 ++ assets/images/.htaccess | 5 ++ assets/import/.htaccess | 5 ++ assets/site/.htaccess | 5 ++ vendor/.gitignore | 0 .../images/ht.access => vendor/.htaccess | 2 +- vendor/index.html | 2 + 14 files changed, 101 insertions(+), 9 deletions(-) create mode 100644 assets/.thumbs/.htaccess rename assets/{cache/images => backup}/.htaccess (100%) rename assets/cache/{updater => }/.htaccess (100%) delete mode 100644 assets/cache/updater/ht.access create mode 100644 assets/export/.htaccess create mode 100644 assets/files/.htaccess create mode 100644 assets/images/.htaccess create mode 100644 assets/import/.htaccess create mode 100644 assets/site/.htaccess delete mode 100644 vendor/.gitignore rename assets/cache/images/ht.access => vendor/.htaccess (53%) create mode 100644 vendor/index.html diff --git a/.gitignore b/.gitignore index 9173642252..adf28e291b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,74 @@ -# ignore any files beginning with . -#\.* +# assets +/assets/.thumbs/* +!/assets/.thumbs/index.html +!/assets/.thumbs/.htaccess + +/assets/backup/* +!/assets/backup/index.html +!/assets/backup/.htaccess -# and any files in the cache directory /assets/cache/* +!/assets/cache/.htaccess +!/assets/cache/index.html +!/assets/cache/siteManager.php +!/assets/cache/sitePublishing.idx.php +!/assets/cache/images/index.html +!/assets/cache/rss/index.html +!/assets/cache/updater/index.html + +/assets/docs/* +!/assets/docs/.htaccess +!/assets/docs/changelog.txt +!/assets/docs/index.html +!/assets/docs/license.txt + +/assets/export/* +!/assets/export/index.html +!/assets/export/.htaccess + +/assets/files/* +!/assets/files/index.html +!/assets/files/.htaccess + +/assets/images/* +!/assets/images/index.html +!/assets/images/evo-logo.png +!/assets/images/.htaccess -# and the config file +/assets/import/* +!/assets/import/index.html +!/assets/import/.htaccess + +/assets/site/* +!/assets/site/index.html +!/assets/site/.htaccess + +# Manager /manager/includes/config.inc.php -# Windows and Mac +# Composer +/composer.phar +/vendor/* +!/vendor/.htaccess +!/vendor/index.html + +# IDE Helper +modx_evolution.IDEhelper.php +_ide_helper.php +.phpstorm.meta.php + +#node.JS +/node_modules +npm-debug.log + +# System +ftpsync.settings Thumbs.db Desktop.ini .DS_Store +.idea +.vagrant +.rocketeer # except do not ignore .gitignore !.gitignore diff --git a/assets/.thumbs/.htaccess b/assets/.thumbs/.htaccess new file mode 100644 index 0000000000..6c1cc6e2da --- /dev/null +++ b/assets/.thumbs/.htaccess @@ -0,0 +1,5 @@ +IndexIgnore */* + + Order Deny,Allow + Deny from all + diff --git a/assets/cache/images/.htaccess b/assets/backup/.htaccess similarity index 100% rename from assets/cache/images/.htaccess rename to assets/backup/.htaccess diff --git a/assets/cache/updater/.htaccess b/assets/cache/.htaccess similarity index 100% rename from assets/cache/updater/.htaccess rename to assets/cache/.htaccess diff --git a/assets/cache/updater/ht.access b/assets/cache/updater/ht.access deleted file mode 100644 index 8f91d28b69..0000000000 --- a/assets/cache/updater/ht.access +++ /dev/null @@ -1,2 +0,0 @@ -order deny,allow -allow from all \ No newline at end of file diff --git a/assets/docs/.htaccess b/assets/docs/.htaccess index 7ec3cfae9a..1fce156e5a 100644 --- a/assets/docs/.htaccess +++ b/assets/docs/.htaccess @@ -2,4 +2,8 @@ IndexIgnore */* Order Allow,Deny Deny from all - \ No newline at end of file + + + Order Deny,Allow + Deny from all + diff --git a/assets/export/.htaccess b/assets/export/.htaccess new file mode 100644 index 0000000000..6c1cc6e2da --- /dev/null +++ b/assets/export/.htaccess @@ -0,0 +1,5 @@ +IndexIgnore */* + + Order Deny,Allow + Deny from all + diff --git a/assets/files/.htaccess b/assets/files/.htaccess new file mode 100644 index 0000000000..6c1cc6e2da --- /dev/null +++ b/assets/files/.htaccess @@ -0,0 +1,5 @@ +IndexIgnore */* + + Order Deny,Allow + Deny from all + diff --git a/assets/images/.htaccess b/assets/images/.htaccess new file mode 100644 index 0000000000..6c1cc6e2da --- /dev/null +++ b/assets/images/.htaccess @@ -0,0 +1,5 @@ +IndexIgnore */* + + Order Deny,Allow + Deny from all + diff --git a/assets/import/.htaccess b/assets/import/.htaccess new file mode 100644 index 0000000000..6c1cc6e2da --- /dev/null +++ b/assets/import/.htaccess @@ -0,0 +1,5 @@ +IndexIgnore */* + + Order Deny,Allow + Deny from all + diff --git a/assets/site/.htaccess b/assets/site/.htaccess new file mode 100644 index 0000000000..6c1cc6e2da --- /dev/null +++ b/assets/site/.htaccess @@ -0,0 +1,5 @@ +IndexIgnore */* + + Order Deny,Allow + Deny from all + diff --git a/vendor/.gitignore b/vendor/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/assets/cache/images/ht.access b/vendor/.htaccess similarity index 53% rename from assets/cache/images/ht.access rename to vendor/.htaccess index 8f91d28b69..83c6d382fb 100644 --- a/assets/cache/images/ht.access +++ b/vendor/.htaccess @@ -1,2 +1,2 @@ order deny,allow -allow from all \ No newline at end of file +allow from all diff --git a/vendor/index.html b/vendor/index.html new file mode 100644 index 0000000000..cfb7d0fe18 --- /dev/null +++ b/vendor/index.html @@ -0,0 +1,2 @@ +

Unauthorized access

+You're not allowed to access file folder \ No newline at end of file