Rails + Apache 2.2.3

Hello, I have a server with multiple domains and it runs Apache 2.2.3
with Rails 1.2.5, Ruby 1.8.5

Now, on 1 domain, I have a subdomain and on this subdomain, I want to
run a rails app. Now I don’t use Mongrel or anything else. The server is
running Plesk 8.1.1.

I have tried alot of things in the httpd.conf file to make it work and
it just doesn’t work.

How can I make my rails app work on this subdomain without changing my
webserver or using mongrel?

Thanks
M

Hi Mattthew

AFAIK, you need to use webbrick, mongrel or lightTPD to run a Rails
Apps :slight_smile:

On Oct 18, 1:57 am, Matthew L. [email protected]

On 17.10.2007, at 20.57, Matthew L. wrote:

it just doesn’t work.

How can I make my rails app work on this subdomain without
changing my
webserver or using mongrel?

You need to run Rails on something. If you really don’t want to use
mongrel, then you’ll need to set it up to run on FastCGI. I don’t
recommend it but there are plenty of tutorials about setting up Rails
with Apache and FastCGI:

Google?
ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=rails+fastcgi+apache+2.2


Jarkko L.

http://www.railsecommerce.com
http://odesign.fi

Hi David

Off course, you are right about using CGI but for the reasons that
you have described,this would not be a practical option at all.

AFAIK, you need to use webbrick, mongrel or lightTPD to run a Rails
Apps :slight_smile:

Actually, there is nothing to stop you running Rails apps under plain
old CGI, if performance is not an issue. i.e. every rails app HTTP
request will fork off a new process, initialise the rails environment,
and then service the request. It won’t be the fastest solution, but it
will work without requiring any new processes to be managed on your
server.

Cheers

David

CCH wrote:

Hi David

Off course, you are right about using CGI but for the reasons that
you have described,this would not be a practical option at all.

Ok thanks for the help