{"action":"opened","issue":{"url":"https://api.github.com/repos/gnif/mod_rpaf/issues/33","labels_url":"https://api.github.com/repos/gnif/mod_rpaf/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/gnif/mod_rpaf/issues/33/comments","events_url":"https://api.github.com/repos/gnif/mod_rpaf/issues/33/events","html_url":"https://github.com/gnif/mod_rpaf/issues/33","id":110611371,"number":33,"title":"Apache 2.4 mod_proxy_fcgi and mod_rpaf doen't forward translated REMOTE_ADDR to FPM","user":{"login":"motienko","id":4611099,"avatar_url":"https://avatars.githubusercontent.com/u/4611099?v=3","gravatar_id":"","url":"https://api.github.com/users/motienko","html_url":"https://github.com/motienko","followers_url":"https://api.github.com/users/motienko/followers","following_url":"https://api.github.com/users/motienko/following{/other_user}","gists_url":"https://api.github.com/users/motienko/gists{/gist_id}","starred_url":"https://api.github.com/users/motienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motienko/subscriptions","organizations_url":"https://api.github.com/users/motienko/orgs","repos_url":"https://api.github.com/users/motienko/repos","events_url":"https://api.github.com/users/motienko/events{/privacy}","received_events_url":"https://api.github.com/users/motienko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-09T08:23:51Z","updated_at":"2015-10-09T08:23:51Z","closed_at":null,"body":"We got configs (frontend revers proxy (mostly nginx or haproxy) + apache2.4 +mod_rpaf + php-fpm 5.5) like:\r\n\r\n\r\n<VirtualHost *:80>\r\n    DocumentRoot /www/sitename.ru\r\n    ServerName sitename.ru\r\n    ServerAlias www.sitename.ru\r\n    RequestHeader set X-RESELLER \"24224234\"\r\n    RequestHeader set X-SITE-FOLDER \"sitename.ru\"\r\n    CustomLog /var/log/apache/sitename.ru_access_log combined\r\n    ErrorLog /var/log/apache/sitename.ru_error_log\r\n\r\n    ProxyPassMatch ^/(.*\\.php(/.*)?)$ fcgi://127.0.0.1:9061/www/sitename.ru/$1\r\n\r\n    <Directory /www/sitename.ru>\r\n        Options -Indexes\r\n        Options FollowSymLinks\r\n        AllowOverride All\r\n        Require all granted\r\n    </Directory>\r\n</VirtualHost>\r\n\r\nThe php-fpm config is default, except listen port.\r\n\r\nWe see proper/traslated IP address in apache logs, but php $_SERVER[REMOTE_ADDR] is address of reverse proxy host (our lan ip from 10.*.*.*) . \r\n\r\nPlease help to resolve this problem.\r\n"}}