WebFaction
Community site: login faq

Does anybody know how you can efficiently run multiple sites (w/ multiple domains) on Rails?

My understanding with how the bundled Rails webapp works is by installing an nginx server to then serve 1 Rails site. This seems grossly inefficient to scale to multiple sites each with it's own dedicated nginx server running in my home directory. (and chewing up my memory quota)

A though that occurred to me is; Is it possible to setup a single nginx server to then serve up the multiple Rails sites similar to Apache's concept of vHosts? (I'm assuming nginx has a concept similar to vHosts)

Anyone out there run into a similar situation or have any thoughts?

asked 10 Nov '11, 22:24

dgersting
1123
accept rate: 0%


Hi,

You can see "How do I serve multiple Passenger apps from a single nginx instance?" for accomplishing this.

Hope that helps!

permanent link

answered 10 Nov '11, 22:48

neeravk
1.5k3412
accept rate: 41%

edited 23 Nov '11, 09:09

seanf
12.2k41836

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×81
×13

question asked: 10 Nov '11, 22:24

question was seen: 3,632 times

last updated: 23 Nov '11, 09:09

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM