From 5f37a50a6c225daf868b584c17cfa0cc379adbb4 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 12 Jun 2017 04:24:29 +0200 Subject: [PATCH] Fix error in calculating IPv4 addresses. --- install_httpd-2.4.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index 3c1048d..d7866f1 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -31,8 +31,8 @@ _PHP_VERSION=7.1.2 ## - Determin IP-Adresses ## - -if ifconfig | grep -i -q -E "inet [address|Adresse]:" ; then - __ipv4="`ifconfig | grep -e \"^\s*inet Adresse\" | grep -v \"127.0.0.1\" | awk '{print$2}' | cut -d\":\" -f2 | sort`" +if ifconfig | grep -i -q -E "inet [address|Adresse]" ; then + __ipv4="`ifconfig | grep -E \"^\s*inet [address|Adresse]\" | grep -v \"127.0.0.1\" | awk '{print$2}' | cut -d\":\" -f2 | sort`" __ipv6="`ifconfig | grep -e \"^\s*inet6-Adresse\" | awk '{print$2}' | grep -v -e \"^::1/\" | grep -v -e \"^fe80\" | cut -d\"/\" -f1 | sort`" else __ipv4="`ifconfig | grep -e \"^\s*inet \" | grep -v \"127.0.0.1\" | awk '{print$2}' | sort`" @@ -360,6 +360,9 @@ IPv4_FIRST=`echo $_IPv4_ADDRESSES | cut -d " " -f1` HTTPD_INFO_ADDRESSES="$_IPv4_ADDRESSES" IPv4_ADDRESSES="127.0.0.1 $_IPv4_ADDRESSES" +echo "HTTPD_INFO_ADDRESSES: $HTTPD_INFO_ADDRESSES" +exit + echo "" echo "Type:" echo -e "\t\033[33mNone\033[m if IPv6 is not suppoerted" @@ -1434,6 +1437,11 @@ config_params="--prefix=$PREFIX \ --enable-xml2enc \ --enable-authnz-ldap \ --enable-proxy=static \ + --enable-proxy-connect=static \ + --enable-proxy-http=static \ + --enable-proxy-fdpass=static \ + --enable-proxy-fcgi=statuc \ + --enable-proxy-wstunnel=static \ --enable-proxy-html=static \ --enable-slotmem-shm \ --with-apr=/usr/local/apr/bin/apr-1-config \