1. 修改httpd.conf內的設定, 針對"/var/www/html/abc"這個目錄做設定
Options MultiViews
AllowOverride Limit
Order allow,deny
Allow from all


2. 在"/var/www/html/abc"目錄內加上".htaccess"這個檔案, 內容如下
order deny,allow
allow from 192.168.1.2
deny from all

ps.目錄下的子目錄也行

 

 

arrow
arrow
    全站熱搜

    yuic123 發表在 痞客邦 留言(0) 人氣()