Skip to content

A free open source IT asset/license management system

Try conditiinal formatting to support apache 2.2 and 2.4

snipe157944b77422
diff --git a/public/.htaccess b/public/.htaccess
index ef7365142c..f2c92b3005 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -37,6 +37,22 @@
</IfModule>
Options -Indexes
-<Files "web.config">
- Deny from all
-</Files>
+# DENY ACCESS TO IIS CONFIG FILE
+
+# Apache 2.2+
+<IfModule !authz_core_module>
+ <Files "web.config">
+ Order allow,deny
+ Deny from all
+ </Files>
+</IfModule>
+
+# Apache 2.4+
+<IfModule authz_core_module>
+ <Files "web.config">
+ Require all denied
+ </Files>
+</IfModule>
+
+
+