<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Making cross-sub-domain ajax (XHR) requests using mod_proxy and iframes</title>
	<atom:link href="http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/feed/" rel="self" type="application/rss+xml" />
	<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/</link>
	<description>PHP, Memcached, XMPP and Web Development</description>
	<lastBuildDate>Mon, 22 Mar 2010 01:25:39 +0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Abhinav Singh</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-21576</link>
		<dc:creator>Abhinav Singh</dc:creator>
		<pubDate>Thu, 18 Feb 2010 05:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-21576</guid>
		<description>Hi,

I remember testing this out locally before blogging and using it. So i don&#039;t think running locally shd be an issue.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I remember testing this out locally before blogging and using it. So i don&#8217;t think running locally shd be an issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-21547</link>
		<dc:creator>guy</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-21547</guid>
		<description>Howdy,

One more question for you: I&#039;ve successfully set up mox_proxy (reverse proxy) locally. I can make external ajax calls in Firefox &amp; Safari with no problem. But I still get the Access Denied error from IE. Do you think it has to do with running things locally?

Your proxy ajax demo works fine for me in IE. Yet, mine won&#039;t work in IE.

I&#039;m thinking it might have to do with running it locally, but I&#039;m not sure.

Thanks.</description>
		<content:encoded><![CDATA[<p>Howdy,</p>
<p>One more question for you: I&#8217;ve successfully set up mox_proxy (reverse proxy) locally. I can make external ajax calls in Firefox &amp; Safari with no problem. But I still get the Access Denied error from IE. Do you think it has to do with running things locally?</p>
<p>Your proxy ajax demo works fine for me in IE. Yet, mine won&#8217;t work in IE.</p>
<p>I&#8217;m thinking it might have to do with running it locally, but I&#8217;m not sure.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhinav Singh</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-20854</link>
		<dc:creator>Abhinav Singh</dc:creator>
		<pubDate>Fri, 05 Feb 2010 08:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-20854</guid>
		<description>Nope i haven&#039;t used .htaccess for such things till now.</description>
		<content:encoded><![CDATA[<p>Nope i haven&#8217;t used .htaccess for such things till now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-20803</link>
		<dc:creator>guy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 04:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-20803</guid>
		<description>One more question: Have you tried using .htaccess for the proxy rules? Having the rules in httpd.conf works fine for static stuff.

If we could use .htaccess, that&#039;ll make things more dynamic and powerful.

I&#039;ve tried a couple of rules - but none worked!

Let me know. Thanks.</description>
		<content:encoded><![CDATA[<p>One more question: Have you tried using .htaccess for the proxy rules? Having the rules in httpd.conf works fine for static stuff.</p>
<p>If we could use .htaccess, that&#8217;ll make things more dynamic and powerful.</p>
<p>I&#8217;ve tried a couple of rules &#8211; but none worked!</p>
<p>Let me know. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-20799</link>
		<dc:creator>guy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 03:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-20799</guid>
		<description>Good news! I enabled mod_proxy on my personal server then accessed an external url (different server) and the REMOTE_ADDR value is the client IP address.

However, there are some additional headers: [&quot;HTTP_X_FORWARDED_FOR&quot;]=&gt;
  string(9) &quot;127.0.0.1&quot;
  [&quot;HTTP_X_FORWARDED_HOST&quot;]=&gt;
  string(14) &quot;localhost:8080&quot;
  [&quot;HTTP_X_FORWARDED_SERVER&quot;]=&gt;
  string(11) &quot;192.168.1.2&quot;

As you can see, the proxy server ip and hostname are passed to the target server. Thus, I&#039;m assuming mod_ip_forwarding specifically resolves that by NOT passing the proxy server info -- which is a highly desirable thing!

I don&#039;t want the target server to even know about the proxy server. But I guess it&#039;s ok for most situations -- wherein only the REMOTE_ADDR value will be used by target servers.

I have yet to install mod_ip_forwarding to see if it does the job, but I&#039;d like to test it out.

Thanks for the article, mate. This is a game changer for cross-scripting until future browsers support it on the client-side. At least, it&#039;s available for the folks who have access to Apache (or their web server).

I was in great need for this. Flash 5 was the last hope, but I recently tried it with no results.

Kudos! Thanks!!!!</description>
		<content:encoded><![CDATA[<p>Good news! I enabled mod_proxy on my personal server then accessed an external url (different server) and the REMOTE_ADDR value is the client IP address.</p>
<p>However, there are some additional headers: ["HTTP_X_FORWARDED_FOR"]=&gt;<br />
  string(9) &#8220;127.0.0.1&#8243;<br />
  ["HTTP_X_FORWARDED_HOST"]=&gt;<br />
  string(14) &#8220;localhost:8080&#8243;<br />
  ["HTTP_X_FORWARDED_SERVER"]=&gt;<br />
  string(11) &#8220;192.168.1.2&#8243;</p>
<p>As you can see, the proxy server ip and hostname are passed to the target server. Thus, I&#8217;m assuming mod_ip_forwarding specifically resolves that by NOT passing the proxy server info &#8212; which is a highly desirable thing!</p>
<p>I don&#8217;t want the target server to even know about the proxy server. But I guess it&#8217;s ok for most situations &#8212; wherein only the REMOTE_ADDR value will be used by target servers.</p>
<p>I have yet to install mod_ip_forwarding to see if it does the job, but I&#8217;d like to test it out.</p>
<p>Thanks for the article, mate. This is a game changer for cross-scripting until future browsers support it on the client-side. At least, it&#8217;s available for the folks who have access to Apache (or their web server).</p>
<p>I was in great need for this. Flash 5 was the last hope, but I recently tried it with no results.</p>
<p>Kudos! Thanks!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-20789</link>
		<dc:creator>guy</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-20789</guid>
		<description>I&#039;m interested in finding out. I was reading about mod_ip_forwarding, which claims to replace the proxy server ip with that of the client.

But if mod_proxy takes care of that, then there&#039;s no need for additional modules.

If you&#039;d be kind to modify http://gtalkbots.com/reverse-proxy-data.php to return the REMOTE_ADDR server variable, I could try the demo from my server (pc).

Let me know.</description>
		<content:encoded><![CDATA[<p>I&#8217;m interested in finding out. I was reading about mod_ip_forwarding, which claims to replace the proxy server ip with that of the client.</p>
<p>But if mod_proxy takes care of that, then there&#8217;s no need for additional modules.</p>
<p>If you&#8217;d be kind to modify <a href="http://gtalkbots.com/reverse-proxy-data.php" rel="nofollow">http://gtalkbots.com/reverse-proxy-data.php</a> to return the REMOTE_ADDR server variable, I could try the demo from my server (pc).</p>
<p>Let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhinav Singh</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-20786</link>
		<dc:creator>Abhinav Singh</dc:creator>
		<pubDate>Wed, 03 Feb 2010 22:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-20786</guid>
		<description>Though currently both gtalkbots.com and this blog on same server, i don&#039;t have any data to prove this.

But i believe you will get ip of abhinavsingh.com and not gtalkbots.com in case they were on hosted on different ip servers.

Response header also only include abhinavsingh.com and have no sign that it proxied the request to gtalkbots.com internally.</description>
		<content:encoded><![CDATA[<p>Though currently both gtalkbots.com and this blog on same server, i don&#8217;t have any data to prove this.</p>
<p>But i believe you will get ip of abhinavsingh.com and not gtalkbots.com in case they were on hosted on different ip servers.</p>
<p>Response header also only include abhinavsingh.com and have no sign that it proxied the request to gtalkbots.com internally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-20784</link>
		<dc:creator>guy</dc:creator>
		<pubDate>Wed, 03 Feb 2010 21:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-20784</guid>
		<description>For the mod_proxy approach, what IP address will the target server [gtalkbots.com] see if I go to your demo page and run it? Will the target server see my IP or your server&#039;s IP?

If it&#039;s your server&#039;s, then there&#039;s no point in using mod_proxy.

Thanks.</description>
		<content:encoded><![CDATA[<p>For the mod_proxy approach, what IP address will the target server [gtalkbots.com] see if I go to your demo page and run it? Will the target server see my IP or your server&#8217;s IP?</p>
<p>If it&#8217;s your server&#8217;s, then there&#8217;s no point in using mod_proxy.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to build a custom static file serving HTTP server using Libevent in C &#124; Abhi&#39;s Weblog</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-18039</link>
		<dc:creator>How to build a custom static file serving HTTP server using Libevent in C &#124; Abhi&#39;s Weblog</dc:creator>
		<pubDate>Sat, 12 Dec 2009 20:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-18039</guid>
		<description>[...] is combined with javascript hacks for streaming data from the custom http servers. Read &#8220;How to make cross-sub-domain ajax (XHR) requests using mod_proxy and iframes&#8221; for [...]</description>
		<content:encoded><![CDATA[<p>[...] is combined with javascript hacks for streaming data from the custom http servers. Read &#8220;How to make cross-sub-domain ajax (XHR) requests using mod_proxy and iframes&#8221; for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhinav Singh</title>
		<link>http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/comment-page-1/#comment-17226</link>
		<dc:creator>Abhinav Singh</dc:creator>
		<pubDate>Sun, 29 Nov 2009 18:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=556#comment-17226</guid>
		<description>Probably you missed, 1st demo is for cross-domain and 2nd demo is for sub-domain ajax requests.

Stay tuned as I plan to explore more on the same lines in my next few posts.</description>
		<content:encoded><![CDATA[<p>Probably you missed, 1st demo is for cross-domain and 2nd demo is for sub-domain ajax requests.</p>
<p>Stay tuned as I plan to explore more on the same lines in my next few posts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
