2013年1月7日 星期一

限制ip存取phpmyadmin on Ubuntu1210

 
 路徑位置在
 /etc/ phpmyadmin/apache.conf 內
============允許 192.168.1.12 自由存取phpmydmin============================

# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
    Options FollowSymLinks
    DirectoryIndex index.php
 

        AllowOverride All
        Order deny,allow
        Deny from all
        Allow from 192.168.1.12        
       


    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_admin_flag allow_url_fopen Off
        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
        php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
    </IfModule>

</Directory>

沒有留言:

張貼留言