From 5e11d323aca6b3fd9f07e5f4ca35c67719d1a265 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 24 Mar 2020 11:58:47 +0100 Subject: cleanup httpd configuration --- phpMyAdmin.htaccess22 | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 phpMyAdmin.htaccess22 (limited to 'phpMyAdmin.htaccess22') diff --git a/phpMyAdmin.htaccess22 b/phpMyAdmin.htaccess22 new file mode 100644 index 0000000..64d7e9a --- /dev/null +++ b/phpMyAdmin.htaccess22 @@ -0,0 +1,103 @@ +# phpMyAdmin - Web based MySQL browser written in php +# +# Allows only localhost by default +# +# But allowing phpMyAdmin to anyone other than localhost should be considered +# dangerous unless properly secured by SSL + +Alias /phpMyAdmin /usr/share/phpMyAdmin +Alias /phpmyadmin /usr/share/phpMyAdmin + + + AddDefaultCharset UTF-8 + + + # Apache 2.4 + Require local + + + # Apache 2.2 + Order Deny,Allow + Deny from All + Allow from 127.0.0.1 + Allow from ::1 + + + + + + # Apache 2.4 + Require local + + + # Apache 2.2 + Order Deny,Allow + Deny from All + Allow from 127.0.0.1 + Allow from ::1 + + + +# These directories do not require access over HTTP - taken from the original +# phpMyAdmin upstream tarball +# + + + # Apache 2.4 + Require all denied + + + # Apache 2.2 + Order Deny,Allow + Deny from All + Allow from None + + + + + + # Apache 2.4 + Require all denied + + + # Apache 2.2 + Order Deny,Allow + Deny from All + Allow from None + + + + + + # Apache 2.4 + Require all denied + + + # Apache 2.2 + Order Deny,Allow + Deny from All + Allow from None + + + + + + # Apache 2.4 + Require all denied + + + # Apache 2.2 + Order Deny,Allow + Deny from All + Allow from None + + + +# This configuration prevents mod_security at phpMyAdmin directories from +# filtering SQL etc. This may break your mod_security implementation. +# +# +# +# SecRuleInheritance Off +# +# -- cgit