I want to add Cloudflare on the server i will receive in some days. However to preserve my visitors IP, I will have to install HttpRealIpModule module as per Cloudflare wiki -- https://www.cloudflare.com/wiki/Nginx
I use these EPEL repository,
rpm --import https://fedoraproject.org/static/0608B895.txt
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install yum-priorities
and then
yum install nginx
I have two questions,
- Will these install the HttpRealIpModule automatically
- If not how can i install it with these EPEL repositories
The version of nginx provided in the remi repository already includes the HttpRealIpModule. You only need to
yum install nginx
.You can check what nginx was compiled with using
nginx -V
: