mirror of https://github.com/CISOfy/lynis.git
HTTP-6624: ignore wildcard and default entries as ServerName
This commit is contained in:
parent
ebdd946570
commit
4874c80186
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue