Implemented PR to detect ServerAlias

Merge branch 'DjSlash-patch-1'
This commit is contained in:
Michael Boelen 2016-09-10 16:17:11 +02:00
commit 08cce0ca63
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@
fi
done
# Search Server aliases
for J in `${GREPBINARY} "ServerAlias" ${I} | ${GREPBINARY} -v "^#" | ${SEDBINARY} "s/.* ServerAlias//g" | ${SEDBINARY} "s/#.*//g"`; do
for J in $(${GREPBINARY} "ServerAlias" ${I} | ${GREPBINARY} -v "^#" | ${SEDBINARY} "s/\s*ServerAlias //g" | ${SEDBINARY} "s/#.*//g"); do
if [ ! -z ${J} ]; then
tVHOSTS="${tVHOSTS} ${J}"
cVHOSTS=$((cVHOSTS + 1))