Welcome! Log In Create A New Profile

Advanced

Reverse proxy configuration on el7

May 06, 2015 10:40PM
Hello!

Did anyone have same problem when configuring reverse proxy nginx +
apache, when the request came from nginx, the IP didn't shows real visitor.

Example access.log:
127.0.0.1 - - [07/May/2015:09:27:30 +0700] "GET / HTTP/1.0" 200 61925
127.0.0.1 - - [07/May/2015:09:27:35 +0700] "GET / HTTP/1.0" 200 61925
127.0.0.1 - - [07/May/2015:09:27:43 +0700] "GET / HTTP/1.0" 200 62367

My proxy config:
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;

In centos6, I got additional packages like mod_rpaf /
mod_extract_forwarded. But I didn't find any similiar packages on centos7.

Any hints?

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reverse proxy configuration on el7

dewanggaba May 06, 2015 10:40PM

Re: Reverse proxy configuration on el7

Nurahmadie Nurahmadie May 06, 2015 10:46PM

Re: Reverse proxy configuration on el7

dewanggaba May 06, 2015 11:08PM

Re: Reverse proxy configuration on el7

Nurahmadie Nurahmadie May 06, 2015 11:12PM

Re: Reverse proxy configuration on el7

dewanggaba May 06, 2015 11:52PM

Re: Reverse proxy configuration on el7

biru May 06, 2015 10:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready