modsecurity 설치후 간단히 작동확인

2016.07.05 13:16

소울 조회 수:4587

[root@localhost logs]# curl --head http://127.0.0.1
HTTP/1.1 200 OK
Date: Tue, 05 Jul 2016 04:14:39 GMT
Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e-fips DAV/2 PHP/5.2.17
X-Powered-By: PHP/5.2.17
Set-Cookie: PHPSESSID=1a60427e29a020ffb090cb311fa6d76e; path=/
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: mobile=false; path=/
Set-Cookie: user-agent=1bd4279218404c12b4df560c7c02e48e; path=/
Last-Modified: Tue, 05 Jul 2016 04:14:39 GMT
Cache-Control: post-check=0, pre-check=0
Content-Type: text/html; charset=UTF-8

[root@localhost logs]# curl --head http://127.0.0.1/etc/passwd
HTTP/1.1 406 Not Acceptable
Date: Tue, 05 Jul 2016 04:14:47 GMT
Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e-fips DAV/2 PHP/5.2.17
Content-Type: text/html; charset=iso-8859-1