Created
January 3, 2016 21:34
-
-
Save protosam/0e83f5e4b98cf80dad2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOM >/etc/httpd/conf.d/phpMyAdmin.conf | |
Alias /phpMyAdmin /usr/share/phpMyAdmin | |
Alias /phpmyadmin /usr/share/phpMyAdmin | |
<Directory "/usr/share/phpMyAdmin"> | |
<IfModule mod_authz_core.c> | |
Require all granted | |
</IfModule> | |
<IfModule !mod_authz_core.c> | |
Order allow,deny | |
Allow from all | |
</IfModule> | |
</Directory> | |
<Directory "/usr/share/phpMyAdmin/setup"> | |
<IfModule mod_authz_core.c> | |
Require all denied | |
</IfModule> | |
<IfModule !mod_authz_core.c> | |
Order allow,deny | |
Deny from all | |
</IfModule> | |
</Directory> | |
EOM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment