X-Git-Url: https://dehnerts.com/gitweb/?a=blobdiff_plain;f=mods-available%2Fphp5.conf;h=6eced7636483b5b00efb5bb7ae74c7acc1c714c1;hb=13f7b3ed9f58c27df61b44d891d8a96ce445e5e4;hp=5d2f9112f49a47bf0b01824263132c5508acf49a;hpb=e067f513d2c3305131987e99ffaeabbc682f1a8f;p=sysconfig%2Fapache2.git
diff --git a/mods-available/php5.conf b/mods-available/php5.conf
index 5d2f911..6eced76 100644
--- a/mods-available/php5.conf
+++ b/mods-available/php5.conf
@@ -1,16 +1,27 @@
-
-
- SetHandler application/x-httpd-php
-
-
- SetHandler application/x-httpd-php-source
-
- # To re-enable php in user directories comment the following lines
- # (from to .) Do NOT set it to On as it
- # prevents .htaccess files from disabling it.
-
-
- php_admin_value engine Off
-
-
-
+
+ SetHandler application/x-httpd-php
+
+
+ SetHandler application/x-httpd-php-source
+ # Deny access to raw php sources by default
+ # To re-enable it's recommended to enable access to the files
+ # only in specific virtual host or directory
+ Order Deny,Allow
+ Deny from all
+
+# Deny access to files without filename (e.g. '.php')
+
+ Order Deny,Allow
+ Deny from all
+
+
+# Running PHP scripts in user directories is disabled by default
+#
+# To re-enable PHP in user directories comment the following lines
+# (from to .) Do NOT set it to On as it
+# prevents .htaccess files from disabling it.
+#
+#
+# php_admin_flag engine Off
+#
+#