File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
error_log stderr warn;
10
10
access_log /dev/stdout main;
11
11
12
- root /var/www/phpldapadmin;
12
+ root /var/www/phpldapadmin/htdocs ;
13
13
client_max_body_size 10M;
14
14
15
15
location /.nginx/status {
@@ -27,9 +27,9 @@ server {
27
27
return 200 "User-agent: *\nDisallow: /";
28
28
}
29
29
30
- # Deny for accessing codes
31
- location ~ ^/(lib|locale|tools|hooks|config)/ {
32
- return 403 ;
30
+ location ~ ^/(css|js|images)$ {
31
+ access_log off;
32
+ expires max ;
33
33
}
34
34
35
35
location ~ \.php$ {
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ 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
38
39
- checkUrl " http://${TEST_ADDR} /index.php" -L | grep -q -F " 1.2.6.4"
40
- checkUrl " http://${TEST_ADDR} /htdocs/ 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."
39
+ checkUrl " http://${TEST_ADDR} /index.php" | grep -q -F " 1.2.6.4"
40
+ 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."
41
41
42
42
if [ $DID_FAIL -gt 0 ]; then
43
43
echo " Some URLs failed"
You can’t perform that action at this time.
0 commit comments