Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-03-08 13:34:33 +0300
committermboelen <michael@cisofy.com>2016-03-08 13:34:33 +0300
commit4874c8018651ca80cbf7b2d88409b5f36b02ca2d (patch)
treea1aec852f3ab4bff7c68d56ff9f683edbbae9036 /include/tests_webservers
parentebdd94657089c3e470fcdc9c1aa517f2c8ee7ea5 (diff)
HTTP-6624: ignore wildcard and default entries as ServerName
Diffstat (limited to 'include/tests_webservers')
-rw-r--r--include/tests_webservers2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_webservers b/include/tests_webservers
index 267619b4..8e483ff3 100644
--- a/include/tests_webservers
+++ b/include/tests_webservers
@@ -140,7 +140,7 @@
FileIsReadable ${I}
if [ ${CANREAD} -eq 1 ]; then
# Search Virtual Hosts
- for J in `grep "ServerName" ${I} | grep -v "^#" | awk '{ if ($1=="ServerName") print $2 }'`; do
+ for J in `grep "ServerName" ${I} | grep -v "^#" | awk '{ if ($1=="ServerName" && $2!="*" && $2!="default") print $2 }'`; do
if [ ! -z ${J} ]; then
tVHOSTS="${tVHOSTS} ${J}"
cVHOSTS=`expr ${cVHOSTS} + 1`