# Subdomain

**URL:** <https://www.ruby-forum.com/t/subdomain/94633>\
**Category:** Rails\
**Created:** [May 9, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/subdomain/94633 "2006-05-09T17:53:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [May 9, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/subdomain/94633/1 "2006-05-09T17:53:19Z")

</div>

hi,

how to create a subdomain outside the public directory

and how to redirect to the subdomain

---

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [June 3, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/subdomain/94633/2 "2009-06-03T15:11:56Z")

</div>

Victor,  
The multi-site extension will get you close  
([GitHub - radiant/radiant-multi-site-extension: An extension for Radiant CMS that lets you serve multiple sites (domains) from a single instance.](http://github.com/radiant/radiant-multi-site-extension/tree/master)).  
You will still need to define the [Kids.westervillelibrary.org](http://Kids.westervillelibrary.org) domain  
outside of radiant (mongrel config, http.conf etc) but you can use the  
extension to map a new site in the admin interface to that domain.

Chaim Kirby  
removed\_email\_address@domain.invalid  
Children’s Hospital Informatics Program

---

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [June 3, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/subdomain/94633/3 "2009-06-03T15:12:32Z")

</div>

On 02.06.2009, at 22:01, Victor Zuniga wrote:

> However, the site is not big enough to set up a new box for it. I  
> Victor

Hello Victor,

if you’re hosting via apache you can add a alias to point to this  
location (i guess)  
setting up a virtual host via apache should not work, as it’s going to  
get a new environment.  
It’s just an educated guess, maybe someone else with in depth apache  
knowledge can help you by point the precise solution out.

Greetings  
michael

> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

_ **m i c h a e l s t a r k e** _\_  
co-founder of  
HicknHack Software GbR  
[www.hicknhack.com](http://www.hicknhack.com)  
Graphics

_ **c o n t a c t** _\_  
+49 (170) 3686136  
+49 (351) 4045428  
removed\_email\_address@domain.invalid

_ **H i c k n H a c k S o f t w a r e G b R** _\_  
maik lathan - andreas reischuck - michael starke  
hübnerstraße 8  
01069 dresden - germany

---

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [June 3, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/subdomain/94633/4 "2009-06-03T15:22:37Z")

</div>

Thanks Michael!

We’re using nginx as our web server.

Victor

On 6/2/09 4:09 PM, “michael starke”  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > [Kids.westervillelibrary.org](http://Kids.westervillelibrary.org)  
> > Thanks,  
> > It’s just an educated guess, maybe someone else with in depth apache  
> > Post: removed\_email\_address@domain.invalid  
> > _ **c o n t a c t** _\_  
> > Radiant mailing list  
> > Post: removed\_email\_address@domain.invalid  
> > Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> > Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

Victor Zuniga  
Westerville Public Library  
126 S. State St. | Westerville, OH 43081  
Phone: 614.882.7277 | ext 165

---

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [June 7, 2009, 9:08am UTC](https://www.ruby-forum.com/t/subdomain/94633/5 "2009-06-07T09:08:34Z")

</div>

Hello,

A follow up question on the multisite extension. I am trying to install  
the  
extension from  
[GitHub - radiant/radiant-multi-site-extension: An extension for Radiant CMS that lets you serve multiple sites (domains) from a single instance.](http://github.com/radiant/radiant-multi-site-extension/tree/master) and  
getting the following error message when running the migrations:

\*\* Invoke production (first\_time)  
\*\* Execute production  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
Could not load extension from file: multi\_site\_extension.  
#\<MissingSourceFile: no such file to load – application\_controller\>  
\*\* Invoke db:migrate:extensions (first\_time)  
\*\* Invoke environment  
\*\* Execute db:migrate:extensions

Any feedback will be greatly appreciated.

Thanks,

Victor

---

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [June 3, 2009, 3:19pm UTC](https://www.ruby-forum.com/t/subdomain/94633/6 "2009-06-03T15:19:03Z")

</div>

Thanks for the suggestion Chaim!

I’ll look into it.

Victor

---

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [June 7, 2009, 9:26am UTC](https://www.ruby-forum.com/t/subdomain/94633/7 "2009-06-07T09:26:42Z")

</div>

Victor Zuniga wrote:

> \*\* Invoke environment (first\_time)  
> \*\* Execute environment  
> Could not load extension from file: multi\_site\_extension.  
> #\<MissingSourceFile: no such file to load – application\_controller\>  
> \*\* Invoke db:migrate:extensions (first\_time)  
> \*\* Invoke environment  
> \*\* Execute db:migrate:extensions

Check the name of the directory to which you installed the extension.  
It’s quite likely that the directory is supposed to called multisite  
rather than multi\_site (which is what it sounds like you named it).

See this for help in naming directories:  
[http://wiki.github.com/radiant/radiant/installing-extensions#naming](http://wiki.github.com/radiant/radiant/installing-extensions#naming)

Cheers,  
Mohit.  
6/7/2009 | 3:24 PM.

---

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [June 11, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/subdomain/94633/8 "2009-06-11T21:40:11Z")

</div>

Hi Mohit,

Sorry about the delay on replying to your email.

The issue had to do with versioning. Sean, thanks for the hint. I went  
ahead  
and checked out tag 0.6.9 and was able to install and run the  
migrations.

So, I have the extension installed and I am about to start the set up.  
Is  
there any details I should be aware of? Is there a sample file (virtual  
host) I can look at. We’re using Nginx as our webserver.

Thanks for the help,

Victor

---

<div class="post-metadata">

**Author:** ![prabu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@prabu](https://www.ruby-forum.com/u/prabu)\
**Post date:** [June 7, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/subdomain/94633/9 "2009-06-07T15:17:54Z")

</div>

Josh and the guys at Digital Pulp have started updating multi\_site to  
work with 0.8-RC1. You will likely need to install an older version of  
the extension for it to work.

Sean
