<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged x-forwarded-for</title>
<link>https://www.question2answer.org/qa/tag/x-forwarded-for</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to make view counts work behind a reverse proxy like nginx?</title>
<link>https://www.question2answer.org/qa/33322/how-to-make-view-counts-work-behind-reverse-proxy-like-nginx</link>
<description>

&lt;p&gt;
	My q2a server is deployed on a different server, receiving requests from an nginx proxy that is on its own server, so the only client IP that q2a sees is the nginx server's IP. &amp;nbsp;This results in view counts not incrementing. &amp;nbsp;The requests that come into q2a could have X-Forwarded-For or X-Real-IP headers, but q2a doesn't use them.&lt;/p&gt;


&lt;p&gt;
	Is there a way to configure this, or places in the code I can start looking to make modifications?&lt;/p&gt;


&lt;p&gt;
	Note: I took a look at &lt;a href=&quot;http://www.question2answer.org/qa/28145/how-get-the-users-when-using-proxy-like-cloudflare-and-varnish&quot; rel=&quot;nofollow&quot;&gt;this question&lt;/a&gt;, but I'm not sure if it applies to my case, since my nginx and q2a servers are on different servers w/ different IPs. &amp;nbsp;Also, assume it's not an option for me to install nginx on the q2a server to do the client IP rewriting,&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/33322/how-to-make-view-counts-work-behind-reverse-proxy-like-nginx</guid>
<pubDate>Fri, 04 Apr 2014 13:31:46 +0000</pubDate>
</item>
</channel>
</rss>