Forum: Radiant CMS Multi-site Extension

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F7da12e414808711712ca07208ab4231?d=identicon&s=25 Todd Mcgregor (mcgwest)
on 2008-12-16 20:19
I've installed the multi-site extension, which is most excellent, but I
can't figure out the URL patterns needed to navigate to each of my
different sites. Can someone using multi-site give me the quick idiot's
guide to using this extension? I've configured my sites, I just can't
view them. I'm using the built-in WEBrick web server for development.
F7badb59154ee74f13e1586e94c73d8d?d=identicon&s=25 Michael Kessler (Guest)
on 2008-12-16 20:24
(Received via mailing list)
Todd,

Try this settings:

Domain match: .*www\.yourdomain\.com[.\/]*
Base domain: www.yourdomain.com

Michael
F7da12e414808711712ca07208ab4231?d=identicon&s=25 Todd Mcgregor (mcgwest)
on 2008-12-16 20:48
Michael Kessler wrote:
> Todd,
>
> Try this settings:
>
> Domain match: .*www\.yourdomain\.com[.\/]*
> Base domain: www.yourdomain.com
>
> Michael

Thanks for the reply. I should probably clarify what I'm doing. I'm
running Radiant on my local machine on port 3000 so my URL is
http://localhost:3000. Assuming I have defined two sites, named site1
and site2, how would I set up each site so I could access them like so -
http://localhost:3000/site1 and http://localhost:3000/site2?

-Todd
F7badb59154ee74f13e1586e94c73d8d?d=identicon&s=25 Michael Kessler (Guest)
on 2008-12-16 21:08
(Received via mailing list)
I don't know if it is possible to run multiple radiant sites under
different contexts on a single domain, but I have had some problems to
run normal rails apps with that setup months ago.

I have different development sites running under a single domain, but
I use a setup with canonical names DNS entries.

So you could try something like this:

Site 1 Domain match: .*site1\.yourdomain\.com[.\/]*
Site 1 Base domain: site1.yourdomain.com

Site 2 Domain match: .*site2\.yourdomain\.com[.\/]*
Site 2 Base domain: site2.yourdomain.com

for production and for development  just add

127.0.0.1  site1.localhost  site2.localhost

to your host config file and then use

Site 1 Domain match: .*site1\.localhost[.\/]*
Site 1 Base domain: site1.localhost

Site 2 Domain match: .*site2\.localhost[.\/]*
Site 2 Base domain: site2.localhost

Hope this helps
Michael
This topic is locked and can not be replied to.