Httpd mod proxy ajp Compilation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * mod_proxy Concepts")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=


* [[Httpd_mod_proxy_Concepts#mod_proxy_ajp_Compilation|mod_proxy Concepts]]
* [[Httpd_mod_proxy_Concepts#mod_proxy_Compilation|mod_proxy Concepts]]
* [[Httpd_RHEL_Compilation#Various_Module_Configuration_Requirements|httpd Compilation]]
 
=Compilation with httpd=
 
Configuration to compile mod_proxy when httpd is compiled from scratch:
 
<pre>
./configure ... \
 
      ...
 
      --enable-so \
      --enable-proxy=shared \
      --enable-proxy-connect=shared \
      --enable-proxy-http=shared \
      --enable-proxy-ajp=shared \
      --enable-proxy-balancer=shared
</pre>
 
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}:
 
<pre>
cd ${SRC_DIR}
${APACHE_HOME}/bin/apxs -a -i -c ./modules/proxy/mod_proxy_ajp.c \
                            ./modules/proxy/ajp_header.c \
                            ./modules/proxy/ajp_msg.c \
                            ./modules/proxy/ajp_utils.c \
                            ./modules/proxy/ajp_link.c
</pre>

Latest revision as of 18:22, 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_ajp.c \
                             ./modules/proxy/ajp_header.c \
                             ./modules/proxy/ajp_msg.c \ 
                             ./modules/proxy/ajp_utils.c \
                             ./modules/proxy/ajp_link.c