diff --git a/.gitignore b/.gitignore index 845a1a0d6..e205e6fad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,17 @@ # no slash at the end to handle also symlinks /toolkit -/conf /env-* # composer reserver directory, from sources, populate/update using "composer install" vendor/* test/vendor/* +# all conf but listing prevention +/conf/** +!/conf/.htaccess +!/conf/web.config + # all datas but listing prevention /data/** !/data/.htaccess diff --git a/conf/.htaccess b/conf/.htaccess new file mode 100644 index 000000000..782472c78 --- /dev/null +++ b/conf/.htaccess @@ -0,0 +1,13 @@ +# Apache 2.4 + +Require all denied + + +# Apache 2.2 + +deny from all +Satisfy All + + +# Apache 2.2 and 2.4 +IndexIgnore * diff --git a/conf/web.config b/conf/web.config new file mode 100644 index 000000000..58c9c3ac3 --- /dev/null +++ b/conf/web.config @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/web.config b/data/web.config index 599a5f260..58c9c3ac3 100644 --- a/data/web.config +++ b/data/web.config @@ -1,8 +1,13 @@ - + - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/log/web.config b/log/web.config index 599a5f260..58c9c3ac3 100644 --- a/log/web.config +++ b/log/web.config @@ -1,8 +1,13 @@ - + - - - - - + + + + + + + + + + \ No newline at end of file