未分類

資安 apache 2.4 限制目錄

資安 apache 2.4 限制目錄

vi /etc/httpd/conf/httpd.conf
Options Indexes FollowSymLinks
AllowOverride All
Require all denied
Require ip 172.18.0.0/255.255.0.0
Require ip 192.168.0.0/255.255.0.0
Require ip 123.123.123.123