On Mar 28, 2012, at 7:58 AM, Scorpio wrote:
> Hi there, I've ran into a bit of emergency with the host that I'm
> using and because of that I need to setup a vps ASAP.
>
> There are a lot of guides out there but all of em seem to be setting
> up one-app servers. I'd like to use nginx, unicorn (performance charts
> rook promising ) for rails and also get php support working. I've been
> digging around google for quite some time now. It seems it's as I said
> either one-app configs or very outdated (2007-ish). I know it's kinda
> not strictly a hobo question but maybe someone out there has a set of
> links I can use or a way to organize all that info in a way that's
> usable. I haven't got enough experience to mix rails and php.
>
> I'd prefer the above mentioned stack but I'm in such a hurry that
> anything working is good enough. I can setup a config for rails that
> makes going to an ip address hit one selected site but that's it. No
> php or multi-app. I'd need help adding php to something like that and
> than adding something like rails_apps/#{appname} (Cpanel style) and
> php_apps/3{appname} to keep things nicely separate. I've got all the
> required domains and such from the old server configs. I did my
> homework based of webmin I'm just not sure how the above changes will
> impact the installation process I know.
Would lean towards an Apache / Passenger stack for this, since the PHP support
is baked-in. I'd recommend keeping each application as a separate Unix user, as
it will help avoid cross-app security breaches. Check out the Apache
documentation for vhosts:
http://httpd.apache.org/docs/2.0/vhosts/examples.html
and the Passenger docs:
http://www.modrails.com/documentation/Users%20guide%20Apache.html
Nginx and unicorn are definitely regarded as quicker, but if performance is a
major concern you shouldn't be serving multiple apps from one box.
--Matt Jones
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.