Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 --

I use these EPEL repository,

rpm --import
rpm -ivh
rpm --import 
rpm -ivh
yum install yum-priorities

and then

yum install nginx 

I have two questions,

  1. Will these install the HttpRealIpModule automatically
  2. If not how can i install it with these EPEL repositories
share|improve this question
The above commands only enable 3rd party repositories that may contain the nginx module and do not install the module itself. –  Chida Aug 22 '12 at 19:09
That's what i also think i need confirmation whether these repo contain the HttpRealIpModule Or not –  Werulz Aug 22 '12 at 19:20
I'm not sure about that. But you can compile nginx from source and enable that module with this compile option --with-http_realip_module –  Chida Aug 22 '12 at 19:28

1 Answer 1

up vote 2 down vote accepted

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:

nginx version: nginx/1.0.15
built by gcc 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/ --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E
share|improve this answer
Thank so much Micheal .........That's all i wanted to know –  Werulz Aug 23 '12 at 5:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.