Tricks about ispconfig3: how to protect ispconfig and phpMyadmin by access only whitelist ip

Discussion in 'Tips/Tricks/Mods' started by Xzave, Nov 28, 2022.

  1. Xzave

    Xzave Member

    Hi,
    to protect isponfig3 by only my own ip:
    Code:
    nano /etc/apache2/sites-available/ispconfig.vhost
    PHP:
    ######################################################Configuration of vhost for ispconfig
    <Directory /var/www/ispconfig/>
    order deny,allow
    deny from all
    allow from myownip
    </Directory>
    ######################################################Configuration End
    to protect phpMyadmin by only my own ip:

    Code:
    nano /etc/apache2/sites-available/ispconfig.conf
    PHP:
    ######################################################Configuration protect for phpMyadmin
    <Directory /usr/share/phpmyadmin>
    order deny,allow
    deny from all
    allow from myownip
    </Directory>
    ######################################################Configuration End
     

Share This Page