mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 05:44:45 +02:00
HTTP-6624: ignore wildcard and default entries as ServerName
This commit is contained in:
parent
ebdd946570
commit
4874c80186
@ -140,7 +140,7 @@
|
|||||||
FileIsReadable ${I}
|
FileIsReadable ${I}
|
||||||
if [ ${CANREAD} -eq 1 ]; then
|
if [ ${CANREAD} -eq 1 ]; then
|
||||||
# Search Virtual Hosts
|
# 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
|
if [ ! -z ${J} ]; then
|
||||||
tVHOSTS="${tVHOSTS} ${J}"
|
tVHOSTS="${tVHOSTS} ${J}"
|
||||||
cVHOSTS=`expr ${cVHOSTS} + 1`
|
cVHOSTS=`expr ${cVHOSTS} + 1`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user