TurnKey Linux Virtual Appliance Library

How to install mod_cloudflare to Debian based LAMP appliance

If you are using CloudFlare's fantastic free CDN service, you might want to preserve the IP addresses of vistors to your site.

I needed this so that I could use my .htaccess allow by IP feature.

Here's the link where I found how to install it:

http://www.gypthecat.com/how-to-install-mod_cloudflare-on-apache-for-ubuntu

cd /root
wget http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c
apt-get install apache2-prefork-dev
apxs2 -iac mod_cloudflare.c
sudo /etc/init.d/apache2 restart

 

This was also helpful when I ran into an error :

http://www.turnkeylinux.org/forum/support/20110502/compiling-apache-modu...

apt-get install libtool

 

Hope this helps someone. 

it's even easier now

http://www.cloudflare.com/resources-downloads

has everything you need for mod_cloudflare on debian

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)