This file is indexed.

/usr/lib/debian-edu-config/testsuite/webserver is in debian-edu-config 1.818+deb8u2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash -e
#
# Test if the web server (apache) works.

. /usr/share/debian-edu-config/testsuite-lib.sh

if test -r /etc/debian-edu/config ; then
    . /etc/debian-edu/config
fi

# Only networked profiles should have the https certificates
if echo "$PROFILE" | egrep -q 'Main-Server|Workstation|Roaming-Workstation|Thin-Client-Server|Minimal' ; then
    :
else
    exit 0
fi

skeloverride=/etc/skel/.mozilla/firefox/debian-edu.default/cert_override.txt
if [ ! -f "$skeloverride" ] ; then
    echo "error: $0: Missing $skeloverride."
else
    if [ -h "$skeloverride" ] ; then
        echo "error: $0: Found $skeloverride as symlink."
    else
        echo "success: $0: Found $skeloverride."
    fi
fi

# Only Main-Server profile provide webserver
if echo "$PROFILE" | grep -q 'Main-Server' ; then
    :
else
    exit 0
fi

# Only Main-Server have the debian-edu profile in the firefox setup.
check_file_perm /etc/skel/.mozilla/firefox/profiles.ini 644

server=www

# Wait for 10 seconds
HEADOPTS="-t 10"

unset http_proxy || true
unset ftp_proxy  || true

if pidof apache > /dev/null ; then
    echo "success: $0: apache is running."
else
    if pidof apache2 > /dev/null ; then
	echo "success: $0: apache2 is running."
    else
	echo "error: $0: apache is not running."
	exit 1
    fi
fi

if [ ! -x /usr/bin/HEAD ] ; then
	echo "error: $0: Unable to find /usr/bin/HEAD."
	exit 1
else
    url=http://$server/
    if HEAD $HEADOPTS $url 2>&1 | grep -q 'Server: Apache' ; then
	echo "success: $0: Apache is listening on '$url'."
    else
	echo "error: $0: Apache is not listening on '$url'."
    fi

    for url in "http://$server/munin/" "http://$server/sitesummary/" \
	"http://$server/debian-edu-doc/" ; do
	if HEAD $HEADOPTS $url 2>&1 | grep -q '200 OK' ; then
	    echo "success: $0: URL '$url' is working."
	else
	    echo "error: $0: URL '$url' is not working."
	fi
    done
fi