I have a small server running W2K on which apache (2.0.x) is running
with
the latest version of ruby and rails (I followed the howto on rubyonrails.orghttp://rubyonrails.org). However, I want to do the
following:
I have a domain (www.domain.orghttp://www.domain.org) configured on
the
server as follows:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot D:/data/www/domain.org
ServerName www.domain.orghttp://www.domain.org
ErrorLog logs/www.domain.org-error_log
CustomLog logs/www.domain.org-access_log common
Alias /h2o d:/data/www/rails.domain.org/h2o/public/
<Directory “d:/data/www/rails.domain.org/h2o/public/”>
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
What I want to do is to serve the h2o application from a different
documentroot than the normal website (which is plain html). No, I don’t
know
if this makes sense or not but bear with me if it remotely does
The dispatch.fcgi in the public folder has as first line
#!D:/data/apps/ruby/bin/rubyw
As mentioned in the HOWTO
Instead of displaying this message you can supply a file here which
will
be rendered instead
Example:
ErrorDocument 500 /500.html
ErrorDocument 500 “
Application error
Rails application failed to
start properly”
Now, the problem is that the application does not work. The URL to start
is
htt://www.domain.org/h2o/account/login. However, this page gives me a
timeout in the logs.
I have a small server running W2K on which apache (2.0.x) is running
with
the latest version of ruby and rails (I followed the howto on rubyonrails.orghttp://rubyonrails.org). However, I want to do the
following:
I have a domain (www.domain.orghttp://www.domain.org) configured on
the
server as follows:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot D:/data/www/domain.org
ServerName www.domain.orghttp://www.domain.org
ErrorLog logs/www.domain.org-error_log
CustomLog logs/www.domain.org-access_log common
Alias /h2o d:/data/www/rails.domain.org/h2o/public/
<Directory “d:/data/www/rails.domain.org/h2o/public/”>
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
What I want to do is to serve the h2o application from a different
documentroot than the normal website (which is plain html). No, I don’t
know
if this makes sense or not but bear with me if it remotely does
The dispatch.fcgi in the public folder has as first line
#!D:/data/apps/ruby/bin/rubyw
As mentioned in the HOWTO
Instead of displaying this message you can supply a file here which
will
be rendered instead
Example:
ErrorDocument 500 /500.html
ErrorDocument 500 “
Application error
Rails application failed to
start properly”
Now, the problem is that the application does not work. The URL to start
is
htt://www.domain.org/h2o/account/login. However, this page gives me a
timeout in the logs.
Someone correct me if I’m wrong, but as far as I know Apache 2.0.x is
not very stable with fastcgi. People usually find Apache 1.3.x works
better.
Apache 2.0 works fine with fastcgid (not fastcgi), which kills old
fastcgi process.
I use a frontend apache because I want to deliver compressed page
through mod_gzip, and as far as I’ve seen it, lighttpd doesn’t support
that (someone confirm?).
Can someone tell me a host where I can deploy a Rails app?
What is the easiest way to do this?
Am I stuck with a colocated server or are there hosted platforms that
make
it easier to deploy and scale?
Anyone?
Thanks in advance!
John B
PS - I know this has multiple answers - just looking for opinions…
Can someone tell me a host where I can deploy a Rails app?
What is the easiest way to do this?
Am I stuck with a colocated server or are there hosted platforms
that make it easier to deploy and scale?
Anyone?
Thanks in advance!
At the moment I know of planet argon and Xeriom.
We’re still testing our Rails platform so you might be better going
for them:
We don’t just hand you the keys to your ssh account and wish you luck…
we’ll help make sure your site is running smoothly. (been known to even
assist with making a few code changes to help optimize client
applications).
Also, we’ve recently begun offering private IP addresses for +$3/mo so
that you can run Lighttpd on your own port WITHOUT mod_proxy through our
Apache servers. It makes Rails apps just a tad bit faster.
I’ve heard good things about Site5 (www.site5.com) as well… but they
don’t offer PostgreSQL.
Good luck on your quest for good hosting. I know it can be tough.
I haven’t had any problems with Apache2 and fastcgi at all, both on my
iBook (development environment) and on the host where it runs (AMD64
box running Apache2 under Gentoo Linux).
I’ve been having far more difficulty getting lighttpd to work properly
on my iBook with a slightly non-standard (read: no examples on the
net) configuration.