Created
July 5, 2015 21:54
-
-
Save varrix/793c62690538de956853 to your computer and use it in GitHub Desktop.
Default apache.conf for phpyMyAdmin. Source: http://stackoverflow.com/a/19817403
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
Alias /phpmyadmin /usr/share/phpmyadmin | |
<Directory /usr/share/phpmyadmin> | |
Options Indexes FollowSymLinks | |
DirectoryIndex index.php | |
<IfModule mod_php5.c> | |
AddType application/x-httpd-php .php | |
php_flag magic_quotes_gpc Off | |
php_flag track_vars On | |
php_flag register_globals Off | |
php_value include_path . | |
</IfModule> | |
</Directory> | |
# Authorize for setup | |
<Directory /usr/share/phpmyadmin/setup> | |
<IfModule mod_authn_file.c> | |
AuthType Basic | |
AuthName "phpMyAdmin Setup" | |
AuthUserFile /etc/phpmyadmin/htpasswd.setup | |
</IfModule> | |
Require valid-user | |
</Directory> | |
# Disallow web access to directories that don't need it | |
<Directory /usr/share/phpmyadmin/libraries> | |
Order Deny,Allow | |
Deny from All | |
</Directory> | |
<Directory /usr/share/phpmyadmin/setup/lib> | |
Order Deny,Allow | |
Deny from All | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment