Restrict phpMyAdmin access

Limit access to your database phpMyAdmin with Apache rules

Overview

If you want to limit access to the database phpMyAdmin you can use a Apache access rule.

Configuration

  1. In the Virtuozzo PaaS GUI, select “Config” on the database node.

  2. Edit the file /conf.d/phpMyAdmin-jel.conf and make sure your <Directory /usr/share/phpMyAdmin/> looks like this. Edit the IP to the IP that should be granted access.

<Directory /usr/share/phpMyAdmin/>
     SetEnvIf X-Forwarded-For ^xxx\.xxx\.xxx\.xxx env_allow_1
     Require env env_allow_1
     Require ip xxx.xxx.xxx.xxx
     Require all denied
</Directory>

Note: Make sure to edit the IP in the example to your desired value

  1. Restart the environment or contact support and we can reload the Apache configuration for you.
Last modified April 22, 2024: added useful options (#171) (7e11b10)