# Radiant w/ Multiple Sites: How does it actually work?

**URL:** <https://www.ruby-forum.com/t/radiant-w-multiple-sites-how-does-it-actually-work/123198>\
**Category:** Radiant CMS\
**Created:** [December 14, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/radiant-w-multiple-sites-how-does-it-actually-work/123198 "2007-12-14T21:52:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tronash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@tronash](https://www.ruby-forum.com/u/tronash)\
**Post date:** [December 14, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/radiant-w-multiple-sites-how-does-it-actually-work/123198/1 "2007-12-14T21:52:50Z")

</div>

I want to use Radiant to host multiple sites. I’ve read the article on  
how to configure the directory structure, etc. My question pertains to  
how it actually works.

I looked at the database, and I don’t see anything that designates which  
site pages or their snippets belong to. If I have [mysite1.com](http://mysite1.com)  
and [mysite2.com](http://mysite2.com) both residing under the same installation,  
how  
does radiant know which page in the database is the default page for  
[mysite1.com](http://mysite1.com) and which page is the default page for  
[mysite2.com](http://mysite2.com) ?

I didn’t see anything in that article that even referred to database  
configuration modifications. So any help you can provide to a rails  
newbie is appreciated.

Cheers,

Travis

---

<div class="post-metadata">

**Author:** ![tronash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@tronash](https://www.ruby-forum.com/u/tronash)\
**Post date:** [December 15, 2007, 7:05am UTC](https://www.ruby-forum.com/t/radiant-w-multiple-sites-how-does-it-actually-work/123198/2 "2007-12-15T07:05:57Z")

</div>

The way the virtual domain extension works is to read the hostname from  
the incoming request, then use that to decide which immediate child of  
the root page should be accessed. The root page of the Radiant  
installation is given a “Virtual Page” type and a “config” part (tab)  
that contains the configuration.

Sean
