I tried to install it by supplying a config file like this:
packages:
rpm:
mod_cloudflare: http://ift.tt/16fv1Hs
files:
"/etc/httpd/conf.d/cloudflare.conf":
mode: "000644"
owner: root
group: root
content: |
CloudFlareRemoteIPHeader X-Forwarded-For
CloudFlareRemoteIPTrustedProxy 10.0.0.0/8
but it ends up not installing it correctly:
AH00526: Syntax error on line 2 of /etc/httpd/conf.d/cloudflare.conf:
Invalid command 'CloudFlareRemoteIPHeader', perhaps misspelled or defined by a module not included in the server configuration
I found that there is no load_module on the cloudflare.so so after adding the load module manually into the cloudflare.conf I'm getting this:
httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/cloudflare.conf: Cannot load modules/mod_cloudflare.so into server: /etc/httpd/modules/mod_cloudflare.so: undefined symbol: ap_log_rerror
I couldn't find a solution yet...
Aucun commentaire:
Enregistrer un commentaire