Skip to content

Instantly share code, notes, and snippets.

@TheRatG
Last active September 19, 2018 18:13
Show Gist options
  • Save TheRatG/4195335 to your computer and use it in GitHub Desktop.
Save TheRatG/4195335 to your computer and use it in GitHub Desktop.
mod_proxy
http://www.hackersgarage.com/install-mod_proxy-apache-module-on-whmcpanel-ceentos-linux-server.html
Installation :
Check Apache current version :
/usr/local/apache/bin/httpd -v
Output :
Server version: Apache/2.2.19 (Unix)
Server built: Jul 4 2011 06:24:27
Go to http://archive.apache.org/dist/httpd/ and pick your matched apache version. In our case it is Apache 2.2.19
cd /tmp/
wget http://archive.apache.org/dist/httpd/httpd-2.2.19.tar.bz2
tar -jxvf httpd-2.2.19.tar.bz2
cd httpd-2.2.19
./configure --enable-mods-shared="proxy proxy_http proxy_connect"
Note : You can add additional mod_proxy modules inside inverted commas.
In our case "proxy proxy_http proxy_connect"
cd modules/proxy/
/usr/local/apache/bin/apxs -i -a -o mod_proxy.so -c mod_proxy.c proxy_util.c
/usr/local/apache/bin/apxs -i -a -o mod_proxy_http.so -c mod_proxy_http.c proxy_util.c
/usr/local/apache/bin/apxs -i -a -o mod_proxy_connect.so -c mod_proxy_connect.c proxy_util.c
/etc/init.d/httpd restart
Installation is completed.
You can verify modules under Apache modules directory.
ls -l /usr/local/apache/modules/mod_proxy*
Output :
/usr/local/apache/modules/mod_proxy_connect.so
/usr/local/apache/modules/mod_proxy_http.so
/usr/local/apache/modules/mod_proxy.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment