2
今天分析日志的时候发现浏览器响应403 访问日志存的是 200
环境
Tengine version: Tengine/2.1.2 (nginx/1.6.2)
规则
location ~ \.php$ {
deny all; #禁止php
}
access.log
61.146.153.20 - - [17/Jul/2016:16:30:33 +0800] "POST //weki.php HTTP/1.1" 200 250 "" "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)" "
-" "-" - 0.000
61.146.153.20 - - [17/Jul/2016:16:30:34 +0800] "POST //data/data/index.php HTTP/1.1" 200 250 "" "Mozilla/4.0 (compatible; MSIE 9
.0; Windows NT 6.1)" "-" "-" - 0.000
61.146.153.20 - - [17/Jul/2016:16:30:34 +0800] "POST //data/conn/config.php HTTP/1.1" 200 250 "" "Mozilla/4.0 (compatible; MSIE
9.0; Windows NT 6.1)" "-" "-" - 0.000
61.146.153.20 - - [17/Jul/2016:16:30:35 +0800] "POST //include/helperss/filter.helpear.php HTTP/1.1" 200 250 ""
"Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)" "-" "-" - 0.000
61.146.153.20 - - [17/Jul/2016:16:30:35 +0800] "POST //install/modurnlecscache.php HTTP/1.1" 200 250 "" "Mozilla/4.0 (co
mpatible; MSIE 9.0; Windows NT 6.1)" "-" "-" - 0.000
61.146.153.20 - - [17/Jul/2016:16:30:35 +0800] "POST //include/data/fonts/uddatasql.php HTTP/1.1" 200 250 "" "Mozil
la/4.0 (compatible; MSIE 9.0; Windows NT 6.1)" "-" "-" - 0.000
浏览器的到的响应
BodyHeaders (5)
STATUS 403 Forbidden
TIME 38 ms
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>403 Forbidden</title>
</head>
<body bgcolor="white">
<h1>403 Forbidden</h1>
<p>You don't have permission to access the URL on this server.
<hr/>Powered by tengine
</body>
</html>
疑惑
是bug吗?