FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Architecture & Design
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
January 01, 2002

Load Balancing Your Web Site (Web Techniques, May 1998)

(Page 11 of 17)

1 #!/bin/sh 2 ## 3 ## apache-rproxy.mk -- Build the apache-rproxy binary 4 ## 5 6 V=1.3b5 7 8 echo "Unpacking Apache $V distribution tarball" 1>&2 9 gunzip <apache_$V.tar.gz | tar xf - 10 cd apache_$V 11 echo "Patching sources for Reverse Proxy support" 1>&2 12 patch -p1 <../apache_$V.patch-rproxy >/dev/null 2>&1 13 cd src 14 echo "Configuring sources for Reverse Proxy usage" 1>&2 15 cat Configuration.tmpl |\ 16 sed -e 's/^AddModule/# AddModule/g' |\ 17 sed -e 's/^[# ]*\(AddModule.*mod_rewrite.o\)/\1/g' |\ 18 sed -e 's/^[# ]*\(AddModule.*libproxy.a\)/\1/g' |\ 19 sed -e 's/^[# ]*\(AddModule.*mod_mime.o\)/\1/g' |\ 20 sed -e 's/^[# ]*\(AddModule.*mod_status.o\)/\1/g' |\ 21 sed -e 's/^[# ]*\(AddModule.*mod_log_config.o\)/\1/g' |\ 22 sed -e 's;^EXTRA_CFLAGS=.*;EXTRA_CFLAGS=DSERVER_SUBVERSION= \\"rproxy\/1.0\\" -DBUFFERED_LOGS -DDYNAMIC_MODULE_LIMIT=0;g' |\ 23 cat >Configuration 24 ./Configure >/dev/null 2>&1 25 echo "Building runtime binary" 1>&2 26 make >/dev/null 2>&1 27 strip httpd 28 cp httpd ../../apache-rproxy 29 echo "Cleaning up" 1>&2 30 cd ../.. 31 rm -rf apache_$V

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK