title: How to force public schema for default schema Apartment Gem?
body: <p>I am using the Apartment gem with Unicorn and Nginx.  I am using the Subdomain elevator. In <code>initializers/apartment/subdomain_exclusions</code> I have <code>Apartment::Elevators::Subdomain.excluded_subdomains = ['www']</code></p>
  
  <p>My understanding is that the public schema should now be used either with the public subdomain, www subdomain, or no subdomain ie mydomain.com.</p>
  
  <p>However, it doesn't work this way.  When I use www or no subdomain, it uses the last accessed schema.  So if I was just using another subdomain, it will use that schema.  This is not good.  I have even tried adding <code>config.default_schema = "public"</code> but this does nothing.</p>
  
  <p>Any ideas why this is not working?  Does anyone have it setup in a similar way and only public schema is used when no subdomain is specified?  Is it possibly Nginx configuration?</p>