File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ server {
27
27
return 200 "User-agent: *\nDisallow: /";
28
28
}
29
29
30
- location ~ ^/(css|js|images)$ {
30
+ location ~ ^/(css|js|images)/ {
31
31
access_log off;
32
32
expires max;
33
33
}
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ checkUrl "http://${TEST_ADDR}/.nginx/status" -I
35
35
checkUrl " http://${TEST_ADDR} /.phpfpm/status" -I
36
36
checkUrl " http://${TEST_ADDR} /index.php" -I
37
37
checkUrl " http://${TEST_ADDR} /robots.txt" -I
38
+ checkUrl " http://${TEST_ADDR} /images/default/logo-small.png" -I | grep -F " Cache-Control: max-age=315360000"
38
39
39
40
checkUrl " http://${TEST_ADDR} /index.php" | grep -q -F " 1.2.6.4"
40
41
checkUrl " http://${TEST_ADDR} /cmd.php" " form" " cmd=login&server_id=1&nodecode%5Blogin_pass%5D=1&login=cn%3Dadmin%2Cdc%3Dexample%2Cdc%3Dorg&login_pass=ldapadminpass&submit=Authenticate" | grep -q -F " Successfully logged into server."
You can’t perform that action at this time.
0 commit comments