Ahmad Mahfouz

Random notes

NGINX forward visitor real ip to apache

let’s assume u have

NGINX on port 80

apache on port 8080

 

in nginx config -> sever config -> virtualhost config

 

so your apache logs say traffic   comes from IP 127.0.0.1

mod_rpaf – reverse proxy add forward

packages needed  apache development

 

apt-get install libapache2-mod-rpaf

mod_rpaf config

or install it from source

https://github.com/gnif/mod_rpaf

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.