Httpd mod proxy Compilation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
<pre>
<pre>
./configure ... \
./configure ... \
   --enable-proxy         \  
  ...
   --enable-proxy-connect \
  --enable-so \
   --enable-proxy-http   \
   --enable-proxy=shared \  
   --enable-proxy-ajp     \
   --enable-proxy-connect=shared \
   --enable-proxy-balancer
   --enable-proxy-http=shared \
   --enable-proxy-ajp=shared \
   --enable-proxy-balancer=shared \
</pre>
</pre>
Note that the modules can also be statically compiled, by specifying simply "--enable-proxy", ... (not recommended).


=Compilation for an Already Installed httpd Instance=
=Compilation for an Already Installed httpd Instance=

Latest revision as of 18:21, 5 January 2017

Internal

Compilation with httpd

Configuration to compile mod_proxy when httpd is compiled from scratch:

./configure ... \
  ...
  --enable-so \
  --enable-proxy=shared \ 
  --enable-proxy-connect=shared \
  --enable-proxy-http=shared \
  --enable-proxy-ajp=shared \
  --enable-proxy-balancer=shared \

Note that the modules can also be statically compiled, by specifying simply "--enable-proxy", ... (not recommended).

Compilation for an Already Installed httpd Instance

In order to compile and install on an already installed httpd instance:

  • Check out/download the corresponding source tree.
  • Locate the httpd instance you want to install the module into. Assuming that is located at ${APACHE_HOME}:
cd ${SRC_DIR}
${APACHE_HOME}/bin/apxs -a -i -c ./modules/proxy/mod_proxy.c ./modules/proxy/proxy_util.c