Web server recommendations?

M

Mark J. Reed

I want my website to include a mixture of static HTML pages, RAILS apps,
some simpler dynamic pages using eruby, and maybe even the occasional
PHP page (gasp! horror! no!). Definitely care most about the Ruby support.

So what web server do you recommend? Apache 1.3.x? Apache 2.x? Should
I use mod_ruby or fastcgi? What does RAILS integrate best with?

Thanks for any suggestions.
 
G

Gregory Seidman

On Tue, Mar 21, 2006 at 10:03:51AM +0900, Mark J.Reed wrote:
} I want my website to include a mixture of static HTML pages, RAILS apps,
} some simpler dynamic pages using eruby, and maybe even the occasional
} PHP page (gasp! horror! no!). Definitely care most about the Ruby support.
}
} So what web server do you recommend? Apache 1.3.x? Apache 2.x? Should
} I use mod_ruby or fastcgi? What does RAILS integrate best with?
}
} Thanks for any suggestions.

I have had great success with Apache2 and fcgid. Installing it under Debian
was pretty much trivial. Getting a Rails app working involved a little bit
of messing with routes and configs, but that's it.

--Greg
 
J

John N. Alegre

Mark said:
I want my website to include a mixture of static HTML pages, RAILS apps,
some simpler dynamic pages using eruby, and maybe even the occasional
PHP page (gasp! horror! no!). Definitely care most about the Ruby
support.

So what web server do you recommend? Apache 1.3.x? Apache 2.x? Should
I use mod_ruby or fastcgi? What does RAILS integrate best with?

Thanks for any suggestions.
This is a loaded responce because I am looking for comments on my solution
but my solution has certainly been working for me.

With Apache 2.0.6 and Rails 1.0.0, I run my Rails apps under the WEBrick
default on a non public port. I then have Apache direct Rails app requests
to that port on localhost. I am not running fastCGI just normal stock
Apache with no mods. I have even done this with WEBrick running on a
separate box on my LAN where Apache is on an OS X system and WEBrick is on
a linux boxen.

Now .. I do not get a ton of hits and I would guess there is a scale issue
here. But it has worked for me with moderate load.

Comments?
john
 
J

James Britt

John said:
Mark J. Reed wrote:



This is a loaded responce because I am looking for comments on my solution
but my solution has certainly been working for me.

With Apache 2.0.6 and Rails 1.0.0, I run my Rails apps under the WEBrick
default on a non public port. I then have Apache direct Rails app requests
to that port on localhost. I am not running fastCGI just normal stock
Apache with no mods. I have even done this with WEBrick running on a
separate box on my LAN where Apache is on an OS X system and WEBrick is on
a linux boxen.

Have you looked at Mongrel? It's a Ruby + C Webserver in the vein of
WEBrick, but far zippier.

--
James Britt

"In Ruby, no one cares who your parents were, all they care
about is if you know what you are talking about."
- Logan Capaldo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top