summaryrefslogtreecommitdiff
path: root/databases/phpmyadmin5/files
diff options
context:
space:
mode:
authortm <tm@pkgsrc.org>2022-04-22 19:28:59 +0000
committertm <tm@pkgsrc.org>2022-04-22 19:28:59 +0000
commitbb533c5a088d6645468b1afb48ffccd69bd6376b (patch)
tree20c811aecc5f1a336fa3910f88c3f9677932df41 /databases/phpmyadmin5/files
parentce38f80febf72056027460f22313d5fb65639c67 (diff)
downloadpkgsrc-bb533c5a088d6645468b1afb48ffccd69bd6376b.tar.gz
phpmyadmin5: import phpmyadmin version 5.1.3
As phpMyAdmin version 4 is currently supported for security fixes only the latest stable version is imported as an extra package. phpMyAdmin 5 is compatible with PHP 7.1 and newer and MySQL/MariaDB 5.5 and newer.
Diffstat (limited to 'databases/phpmyadmin5/files')
-rw-r--r--databases/phpmyadmin5/files/phpmyadmin.conf36
1 files changed, 36 insertions, 0 deletions
diff --git a/databases/phpmyadmin5/files/phpmyadmin.conf b/databases/phpmyadmin5/files/phpmyadmin.conf
new file mode 100644
index 00000000000..4d6785cbef8
--- /dev/null
+++ b/databases/phpmyadmin5/files/phpmyadmin.conf
@@ -0,0 +1,36 @@
+# $NetBSD: phpmyadmin.conf,v 1.1 2022/04/22 19:28:59 tm Exp $
+#
+# phpmyadmin configuration file fragment for Apache
+
+<IfModule mod_alias.c>
+ Alias /phpmyadmin/ "@PMDIR@/"
+</IfModule>
+
+<Directory "@PMDIR@">
+ Options Indexes
+ AllowOverride None
+<IfModule !mod_authz_core.c>
+ Order allow,deny
+ Allow from all
+</IfModule>
+<IfModule mod_authz_core.c>
+ Require all granted
+</IfModule>
+</Directory>
+
+#
+# For security, don't serve pages from the phpmyadmin setup directories.
+#
+# NOTE: If you are setting up phpmyadmin for the first time you will need
+# to comment this block out the first time you access your phpmyadmin
+# installation.
+#
+<Directory "@PMDIR@/setup">
+<IfModule !mod_authz_core.c>
+ Order deny,allow
+ Deny from all
+</IfModule>
+<IfModule mod_authz_core.c>
+ Require all denied
+</IfModule>
+</Directory>