I'm working on a pair of sites for a client that will be on two
subdomains and hosted on a shared host (Dreamhost). I thought the
multi-site extension would be ideal for that but have not yet figured
out how to do this under Phusion Passenger, the preferred Rails
deployment method at DH.

To allow mod_rewrite, add this to your apache conf:
RailsAllowModRewrite on

Passenger's issue with mod_rewrite is that the default .htaccess supplied with Rails tries to funnel all requests through one of the dispatchers, so be sure to remove either the entire .htaccess file from /public, or remove everything but those parts you know you need (e.g. static caching, as Jay Levitt mentioned.)

However, we've successfully served multiple subdomains without resorting to mod_rewrite by defining each subdomain from within the multisite extension -- main.tld and sub.main.tld, both being served from a single Radiant instance. Is that your use case? Your question implies you've got a dev or preview domain that may need additional http authentication -- that's also possible, but I don't want to confuse the issue if that's not your scenario.

j

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to