<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Mohanjith&#039;s Blog &#187; proxy</title> <atom:link href="http://mohanjith.net/blog/topics/proxy/feed" rel="self" type="application/rss+xml" /><link>http://mohanjith.net/blog</link> <description>MOHA blogging news and thoughts...</description> <lastBuildDate>Wed, 14 Dec 2011 14:18:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Running Drupal behind a reverse proxy</title><link>http://mohanjith.net/blog/2008/02/running-drupal-behind-reverse-proxy.html</link> <comments>http://mohanjith.net/blog/2008/02/running-drupal-behind-reverse-proxy.html#comments</comments> <pubDate>Sun, 10 Feb 2008 01:31:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Apache HTTP Server]]></category> <category><![CDATA[Drupal]]></category> <category><![CDATA[proxy]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=41</guid> <description><![CDATA[TweetI was supposed to move one of the Drupal sites I&#8217;m maintaining behind a Reverse Proxy. The migration was smooth as it could get, but soon throttiling was an issue. All requests were coming from the Proxy server, and Drupal didn&#8217;t seem to automagically detect the client IP based on the X-Forwarded-For header. So I [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/02/running-drupal-behind-reverse-proxy.html" data-text="Running Drupal behind a reverse proxy" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F02%2Frunning-drupal-behind-reverse-proxy.html&#038;text=Running%20Drupal%20behind%20a%20reverse%20proxy" >Tweet</a></span>I was supposed to move one of the <a
href="http://drupal.org">Drupal</a> sites I&#8217;m maintaining behind a Reverse Proxy. The migration was smooth as it could get, but soon throttiling was an issue. All requests were coming from the Proxy server, and Drupal didn&#8217;t seem to automagically detect the client IP based on the X-Forwarded-For header.</p><p>So I set about investigating what can be done. As I <a
href="http://drupal.org/node/173408">discovered</a>, automagic client IP detection is only available in Drupal 6 (At the time of writing, under development). I went about porting the changes to Drupal 5.x. Porting was as easy as it can be, but it was not working.</p><p>Further investigation lead to one of the site configurations; I had enabled Normal Caching in the Drupal site. It was not acceptable to switch off caching, so I went about debugging this code to make it work with caching enabled. Finally I was able to fix the issue, it was trivial but it was not easy to debug. The fix involved removing cached IP address for every request such that the correct IP will be detected. See my patch in drupal.org at <a
href="http://drupal.org/node/219825">http://drupal.org/node/219825</a>.</p><p>Hope this helps someone.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/02/running-drupal-behind-reverse-proxy.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/02/running-drupal-behind-reverse-proxy.html/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 16/19 queries in 0.012 seconds using memcached
Object Caching 0/0 objects using memcached
Content Delivery Network via cdn.mohanjith.net

Served from: mohanjith.net @ 2012-05-30 08:47:32 -->
