HTTP-6624: ignore wildcard and default entries as ServerName

This commit is contained in:
mboelen 2016-03-08 11:34:33 +01:00
parent ebdd946570
commit 4874c80186
1 changed files with 1 additions and 1 deletions

View File

@ -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`