Skip to content

Instantly share code, notes, and snippets.

@gonzariosm
Created January 28, 2021 18:17
Show Gist options
  • Save gonzariosm/72e3d1432d80566551d580d44314ea86 to your computer and use it in GitHub Desktop.
Save gonzariosm/72e3d1432d80566551d580d44314ea86 to your computer and use it in GitHub Desktop.
Bitnami PHPMyAdmin httpd-app.conf
<IfDefine USE_PHP_FPM>
<Proxy "unix:/opt/bitnami/php/var/run/phpmyadmin.sock|fcgi://phpmyadmin-fpm" timeout=300>
</Proxy>
</IfDefine>
<Directory "/opt/bitnami/apps/phpmyadmin/htdocs">
# AuthType Basic
# AuthName phpMyAdmin
# AuthUserFile "/opt/bitnami/apache2/users"
# Require valid-user
AllowOverride None
<IfModule php7_module>
php_value upload_max_filesize 80M
php_value post_max_size 80M
</IfModule>
<IfDefine USE_PHP_FPM>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://phpmyadmin-fpm"
</FilesMatch>
</IfDefine>
<IfVersion < 2.3 >
Order allow,deny
Allow from 127.0.0.1
Satisfy all
</IfVersion>
<IfVersion >= 2.3>
Require local
</IfVersion>
ErrorDocument 403 "For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname."
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment