<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -69,13 +69,10 @@ Imagine you have a CMS that hosts multiple client sites. You want your users to
 
 Now, it gets tricky if you want `http://cool-site.com` to render `cool-site`'s public content because you can't tell if this request has a subdomain or not. In order for your routes to work, you must have all requests coming in from your domain `yourcmsapp.com`. You can accomplish this by calling the `Proxy.replace_host_with(&amp;block)` method like so:
 
-	class ApplicationController &lt; ActionController::Base
-	  
-	  # you can put this in an initializer or something instead if you'd like
-	  Proxy.replace_host_with do |request|
-	    &quot;#{Site.find_by_domain(request.host).try(:subdomain) || '-INVALID-'}.yourcmsapp.com&quot; unless request.host =~ /(\.|^)yourcmsapp.com$/i
-	  end
-	  
+	# config/initializers/proxy.rb
+        
+	Proxy.replace_host_with do |request|
+	  &quot;#{Site.find_by_domain(request.host).try(:subdomain) || '-INVALID-'}.yourcmsapp.com&quot; unless request.host =~ /(\.|^)yourcmsapp.com$/i
 	end
 
 Let's examine what this block is doing:</diff>
      <filename>README.markdown</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8831a917c14dc058229a8f67b9d9253c0d0835ad</id>
    </parent>
  </parents>
  <author>
    <name>shuber</name>
    <email>shuber@huberry.com</email>
  </author>
  <url>http://github.com/shuber/proxy/commit/781aecc72032730743b3c6b44465b2da17ffee9e</url>
  <id>781aecc72032730743b3c6b44465b2da17ffee9e</id>
  <committed-date>2009-06-22T20:20:58-07:00</committed-date>
  <authored-date>2009-06-22T20:20:58-07:00</authored-date>
  <message>Update README</message>
  <tree>2596d1be41f44a25e7fc1fc5b3db109fbdac2d84</tree>
  <committer>
    <name>shuber</name>
    <email>shuber@huberry.com</email>
  </committer>
</commit>
