I think that Simon has your solution. Instead of mangling .htaccess
simply point all your domains (from the DH Panel) to the same place.
I've never used the multi site extension but I believe that will be
enough to do what you want.
If it doesn't work, then perhaps you need to create a variant of the
extension that works with this setup.
Adam
On 7-Oct-08, at 2:44 PM, Simon Rönnqvist wrote:
On Oct 8, 2008, at 24:31 , Bill Barnard wrote:
On Tue, Oct 07, 2008 at 04:50:33PM -0400, Jay Levitt wrote:
Bill Barnard wrote:
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.
Has anyone done anything similar under Passenger? I'm searching the
Passenger groups & docs but have not yet found anything useful.
FWIW: the Passenger docs say that mod_rewrite is overridden/ignored
unless you explicitly turn it on with some httpd.conf keyword that I
can't remember. However, I saw a post somewhere once upon a time
that
claimed that rewrite rules simply didn't work in the .htaccess,
with or
without that keyword - but that they did work in httpd.conf itself.
I'm successfully using a rewrite rule in httpd.conf for static
caching:
RewriteEngine On
RewriteRule ^([^.]+)$ /cache/$1.html [QSA]
That help any? What failed under Passenger?
I have rewrite working, DH enabled it in httpd.conf. (I have a
rewrite
that adds a trailing slash to all URLs that are not part of the admin
interface.)
I tried the simpleminded approach of pointing both my subdomains at
the
same public dir and enabling Passenger for each subdomain. I
created one
test page for each subdomain. Once Passenger is spawned by
accessing one
of the two subdomains the page delivered is the same for each
subdomain,
and is determined by which subdomain was first accessed.
Actually, as I was writing this I figured out how to do it. I made my
new subdomain point to a public that is a symlink to the original app
public and it works fine. (I think I tried this yesterday but it
did not
work at that time for reasons not relevant here.) Anyway it turns out
that a simpleminded approach *does* work!
Hi!
Why are you using a symlink? You *can* actually point several
domains to the very same directory at Dreamhost. (I've been doing
that when hosting multiple sites with Drupal.) I actually also tried
pointing a domain towards a symlink once, and that again didn't work.
Maybe I just misunderstood what you were doing?
cheers, Simon
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant