apache2.4 compiled&installaton on LINUX
yum -y install gcc+ gcc-c++
./config shared zlib
make&&make install
mv /usr/bin/openssl /usr/bin/openssl.OFF
mv /usr/include/openssl /usr/include/openssl.OFF
ln -sf /usr/local/ssl/lib/libssl.so.1.0.0 /usr/lib/libssl.so
ln -sf /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -sf /usr/local/ssl/include/openssl /usr/include/openssl
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
ldconfig -v
openssl version -a
make&&make install
yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
./configure --prefix=/data/system/apr
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
./configure --prefix=/data/system/apr-util -with-apr=/data/system/apr/bin/apr-1-config
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
./configure --prefix=/data/system/pcre --disable-shared --with-pic
wget http://archive.apache.org/dist/httpd/httpd-2.4.9.tar.gz
./configure --prefix=/data/system/apache2.4 --enable-rewrite --enable-cache --enable-disk-cache -enable-mem-cache --enable-file-cache --with-ssl=/usr/local/ssl --enable-ssl --enable-so --enable-mime-magic --enable-mods-shared=most --with-mpm=worker -with-apr-util=/data/system/apr-util --with-apr=/data/system/apr --with-pcre=/data/system/pcre
./configure --prefix=/data/system/apache2.4.9 --enable-rewrite --enable-cache --enable-disk-cache -enable-mem-cache --enable-file-cache --with-ssl=/usr/local/ssl --enable-ssl --enable-so --enable-mime-magic --enable-mods-shared=most --with-mpm=worker --with-included-apr --with-pcre=/data/system/pcre/bin/pcre-config
put /usr/local/src/httpd-2.4.9.tar.gz httpd-2.4.9.tar.gz
put /usr/local/src/apr-1.4.5.tar.gz apr-1.4.5.tar.gz
put /usr/local/src/apr-util-1.3.12.tar.gz apr-util-1.3.12.tar.gz
put /usr/local/src/openssl-1.0.1g.tar.gz openssl-1.0.1g.tar.gz
ProxyPass /docs/ ajp://localhost:8009/docs/
ProxyPass /stg/ ajp://localhost:9009/stg/
wget http://localhost/stg/
ProxyPassReverse /stg/ ajp://localhost:9009/stg/
put /data/system/src/httpd-2.4.9/srclib/apr-util-1.5.3.tar.gz /data/system/src/apr-util-1.5.3.tar.gz
put /data/system/src/openssl-1.0.1g.tar.gz /data/system/src/openssl-1.0.1g.tar.gz
CustomLog "|/usr/local/sbin/cronolog /data/system/apache2.4.9/logs/access_%Y%m%d.log" common
wget http://localhost:81/docroot/img_app3/
wget http://localhost/docroot/img_app3/
wget http://10.202.40.166/docroot/img_app3/
ln -sf /data/cep/tomcat7/webapps/ROOT/docroot/ /data/system/apache2.4.9/htdocs/docroot
wget http://localhost/docroot/img/
<Files *>
Options -Indexes
</Files>
vi /data/cep/tomcat7/webapps/ROOT/docroot/.htaccess
vi
ProxyPass /stg/ ajp://10.202.40.166:9009/stg/
ProxyPass /testing/ ajp://10.202.40.166:9009/testing/
ProxyPass /docroot/img_app3/ http://10.202.40.166/docroot/img_app3/
ProxyPass /docroot !
ProxyPass /do_not_delete !
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
ProxyPass /web !