0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-27 21:05:05 +00:00
Files
termux-packages/packages/phpmyadmin/phpmyadmin.conf
2025-01-29 23:14:08 +08:00

41 lines
1.0 KiB
Plaintext

Alias /phpmyadmin @TERMUX_PREFIX@/share/phpmyadmin
<Directory @TERMUX_PREFIX@/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php
Require all granted
<IfModule mod_php.c>
php_value error_reporting "E_ALL & ~E_DEPRECATED"
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 @TERMUX_PREFIX@/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 @TERMUX_PREFIX@/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory @TERMUX_PREFIX@/share/phpmyadmin/vendor>
Order Deny,Allow
Deny from All
</Directory>
<Directory @TERMUX_PREFIX@/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>