{"id":284,"date":"2017-10-27T08:18:47","date_gmt":"2017-10-27T07:18:47","guid":{"rendered":"http:\/\/pruszewicz.com\/wordpress\/?p=284"},"modified":"2017-10-27T08:18:47","modified_gmt":"2017-10-27T07:18:47","slug":"log-x-forwarded-for","status":"publish","type":"post","link":"http:\/\/pruszewicz.com\/wordpress\/log-x-forwarded-for\/","title":{"rendered":"Log X-Forwarded-For"},"content":{"rendered":"<p>https:\/\/httpd.apache.org\/docs\/current\/mod\/mod_remoteip.html<br \/>\nhttps:\/\/www.loadbalancer.org\/blog\/apache-and-x-forwarded-for-headers\/<\/p>\n<p>uncoment<br \/>\n#LoadModule remoteip_module libexec\/apache24\/mod_remoteip.so<\/p>\n<p>In <IfModule log_config_module> section add:<br \/>\nRemoteIPHeader X-Forwarded-For<br \/>\nLogFormat &#8220;%{X-Forwarded-For}i %h %l %u %t \\&#8221;%r\\&#8221; %>s %b \\&#8221;%{Referer}i\\&#8221; \\&#8221;%{User-Agent}i\\ &#8221; combine<br \/>\nLogFormat &#8220;%{X-Forwarded-For}i %h %l %u %t \\&#8221;%r\\&#8221; %s %b \\&#8221;%{Referer}i\\&#8221; \\&#8221;%{User-agent}i\\&#8221;&#8221; combined-forwarded<\/p>\n<p># apachectl configtest<br \/>\n# \/usr\/local\/etc\/rc.d\/apache24 restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/httpd.apache.org\/docs\/current\/mod\/mod_remoteip.html https:\/\/www.loadbalancer.org\/blog\/apache-and-x-forwarded-for-headers\/ uncoment #LoadModule remoteip_module libexec\/apache24\/mod_remoteip.so In section add: RemoteIPHeader X-Forwarded-For LogFormat &#8220;%{X-Forwarded-For}i %h %l %u %t \\&#8221;%r\\&#8221; %>s %b \\&#8221;%{Referer}i\\&#8221; \\&#8221;%{User-Agent}i\\ &#8221; combine LogFormat &#8220;%{X-Forwarded-For}i %h %l %u %t \\&#8221;%r\\&#8221; %s %b \\&#8221;%{Referer}i\\&#8221; \\&#8221;%{User-agent}i\\&#8221;&#8221; combined-forwarded # apachectl configtest # &hellip; <a href=\"http:\/\/pruszewicz.com\/wordpress\/log-x-forwarded-for\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-apache"],"_links":{"self":[{"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":1,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":285,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/posts\/284\/revisions\/285"}],"wp:attachment":[{"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}