Archiv der Kategorie: PHPMyAdmin

Debian 6 – ISPConfig3 PHPMyAdmin Zugriff auf bestimmte IP-Adressen beschränken

vi /etc/apache2/sites-available/ispconfig.conf
#
################################################
# ISPConfig Logfile configuration for vlogger
################################################
 
LogFormat "%v %h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig
 
<Directory /var/www/clients>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>
 
# Do not allow access to the root file system of the server for security reasons
<Directory />
       AllowOverride None
       Order Deny,Allow
       Deny from all
</Directory>
 
<Directory /var/www/conf>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>
 
# Except of the following directories that contain website scripts
<Directory /usr/share/phpmyadmin>
#   Order Deny,Allow
#   Deny from all
### ### ### PLITC ### ### ###
    Order allow,deny
    Allow from 192.168.250.0/24
    Allow from 80.xxx.xxx.xxx
    Allow from 1xx.xxx.0.0/16
    Allow from 2001:470:xxxx::/48
### ### ### PLITC ### ### ###
</Directory>
 
<Directory /usr/share/phpMyAdmin>
#   Order Deny,Allow
#   Deny from all
### ### ### PLITC ### ### ###
    Order allow,deny
    Allow from 192.168.250.0/24
    Allow from 80.xxx.xxx.xxx
    Allow from 1xx.xxx.0.0/16
    Allow from 2001:470:xxxx::/48
### ### ### PLITC ### ### ###
</Directory>
 
<Directory /usr/share/squirrelmail>
        Order allow,deny
        Allow from all
</Directory>
 
# allow path to awstats and alias for awstats icons
<Directory /usr/share/awstats>
        Order allow,deny
        Allow from all
</Directory>
 
Alias /awstats-icon "/usr/share/awstats/icon"
 
# EOF