Created
January 14, 2011 23:10
-
-
Save pdeschen/780464 to your computer and use it in GitHub Desktop.
Rough script for building and installing apache mod_rpaf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#(for apxs) | |
yum install -y httpd-devel | |
cd /usr/local/src/ | |
sudo wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz | |
sudo tar xzf mod_rpaf-0.6.tar.gz | |
cd mod_rpaf-0.6 | |
sudo apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c | |
#Make sure you have keepalive off in httpd.conf | |
sed -i 's/Keepalive On/Keepalive Off/' /etc/httpd/conf/httpd.conf | |
#Activate module and config in httpd.conf | |
echo "LoadModule rpaf_module modules/mod_rpaf-2.0.so / | |
LoadModule rpaf_module libexec/apache2/mod_rpaf-2.0.so / | |
RPAFenable On / | |
RPAFsethostname On / | |
RPAFproxy_ips 127.0.0.1 / | |
RPAFheader X-Forwarded-For" >> /etc/httpd/conf/httpd.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment