X-Git-Url: https://dehnerts.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mods-available%2Fphp5.conf;h=6eced7636483b5b00efb5bb7ae74c7acc1c714c1;hb=b2a3fa48100ae506ac8ef0cab273459c9e251a12;hp=2533117ac60c3c4fb2628b98883e0dff7e044dd1;hpb=8d6e6d0bbf88efd53c5cd55cf04b8228c0649212;p=sysconfig%2Fapache2.git
diff --git a/mods-available/php5.conf b/mods-available/php5.conf
index 2533117..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
+#
+#