<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged proxy</title>
<link>https://www.question2answer.org/qa/tag/proxy</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>
<item>
<title>How to get the IP of users when using a proxy like CloudFlare and Varnish?</title>
<link>https://www.question2answer.org/qa/28145/how-get-the-users-when-using-proxy-like-cloudflare-and-varnish</link>
<description>So I am using two proxys before my website - CloudFlare and Varnish. CloudFlare passes the IP of user accessing the site via a HTTP header variable which I capture on Varnish and can use. But am not sure how to get it to be used by q2a installation. RIght now all am seeing for IP address of any visitor is 127.0.0.1 - understandably that's the IP of my varnish installation.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28145/how-get-the-users-when-using-proxy-like-cloudflare-and-varnish</guid>
<pubDate>Mon, 14 Oct 2013 01:37:58 +0000</pubDate>
</item>
</channel>
</rss>