Project

General

Profile

Actions

Sub URI for multisites at one domain » History » Revision 1

Revision 1/3 | Next »
Jiongliang Zhang, 2010-01-22 13:20
starting writing


Why we need SubURI in one domain for multisites

When there are many web sites on your hands, then how to deploy? what their relationship should be? If you are richer, and never care about money, then you can deploy them one server machine one site. But, as you know, we programmers, not so rich as we are, so... we may consider deploy one server machine multisites, and maybe we just want to deploy them at the server machine just has one network interface card, it means there is just one ip address. One ip address, there are also two resolving ways (If there's error, just tell me), one is virtual host (it needs to configure DNS server A record.), the other is multi directories. In there, I want to tell the second one.

What it looks like

The multi directories deploy way, call it sub-uri way, is look like this:
  • resuming the domain is "pfg.com" (ip address is ok),
  • there are two or more rails applications, app1, app2, ... appN
  • web server is apache2.2
  • Ruby 1.8.6
  • Rails 2.1.x or Rails 2.2.x (a little different)
http://pfg.com/app1
http://pfg.com/app2
...
http://pfg.com/appN

Next, I will tell you how to configure them.

How to configure them in Rails application

Attention

Updated by Jiongliang Zhang almost 15 years ago · 1 revisions