termux-packages/packages/phpmyadmin/phpmyadmin.conf
2020-08-31 14:41:55 +03:00

37 lines
1011 B
Plaintext

Alias /phpmyadmin /data/data/com.termux/files/usr/share/phpmyadmin
<Directory /data/data/com.termux/files/usr/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php7.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 /data/data/com.termux/files/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 /data/data/com.termux/files/usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /data/data/com.termux/files/usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>