# Which is efficient fastcgi or mingrel?

**URL:** <https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946>\
**Category:** Deployment\
**Created:** [August 13, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946 "2007-08-13T19:46:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![swaroopkanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@swaroopkanth](https://www.ruby-forum.com/u/swaroopkanth)\
**Post date:** [August 13, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946/1 "2007-08-13T19:46:23Z")

</div>

which is efficient,fastcgi or mingrel?

---

<div class="post-metadata">

**Author:** ![swaroopkanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@swaroopkanth](https://www.ruby-forum.com/u/swaroopkanth)\
**Post date:** [August 13, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946/2 "2007-08-13T20:31:46Z")

</div>

On Mon, 2007-08-13 at 19:46 +0200, Swaroop Kanth wrote:

> which is efficient,fastcgi or mingrel?

Typo?

Definitely go with mongrel\_rails. The servers have run so much faster,  
and more reliably since converted most of the sites from fastcgi to  
mongrel\_rails with a proxy balancer. Nginx, and “apache mod\_proxy” are  
both good solutions for this. Nginx will put the least load on your  
servers, and is about the most stable server application I have ever  
seen. Apache has the advantage that it can serve up practically any  
kind of content, so for people who have all kinds of stuff like rails,  
php, and mod\_perl stuff all on the same site it will usually be easier  
to just use apache as the proxy balancer.

## Cheers!

Daniel J.  
Systems Administrator

PLANET ARGON, LLC  
Ruby on Rails Development, Consulting & Hosting

> **[Planet Argon](https://www.planetargon.com/)**
>
> Planet Argon is a Ruby on Rails development agency specializing in maintenance and support for existing Rails apps. Based in Portland, OR, Planet Argon has been a member of the Rails community since 2004.

[http://teknot.us](http://teknot.us) [blog]  
teknotus [freenode IRC]  
+1 503 445 2457  
+1 877 55 ARGON [toll free]  
+1 815 642 4068 [fax]

---

<div class="post-metadata">

**Author:** ![swaroopkanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@swaroopkanth](https://www.ruby-forum.com/u/swaroopkanth)\
**Post date:** [August 14, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946/3 "2007-08-14T19:00:40Z")

</div>

On Tue, 2007-08-14 at 01:44 +0200, D. Krmpotic wrote:

> thanx  
> david

Nginx was originally developed in Russia, and as such most of the  
original documentation is only in Russian. There is an English wiki  
however with very good documentation.

[http://wiki.codemongers.com/Main?action=show&redirect=Nginx](http://wiki.codemongers.com/Main?action=show&redirect=Nginx)

Nginx config files seem to use whatever domain name is listed first as  
the default domain, so if a page request doesn’t match the pattern for  
any of the vhosts then it will serve that one by default. You also need  
to be explicit with accepting subdomains, or wildcard subdomains or you  
will end up having those all go to the default domain. It’s important  
to check the nginx log files to see what is going on. If there is a  
syntax error in the config it will revert to default behavior, and  
ignore all of your configuration.

This example that we use with PLANET ARGON hosting might help you though  
I’m sure you would have to modify it for your needs.

[http://docs.planetargon.com/Nginx\_Configuration](http://docs.planetargon.com/Nginx_Configuration)

–  
Daniel J.  
Systems Administrator

PLANET ARGON, LLC  
Ruby on Rails Development, Consulting & Hosting

> **[Planet Argon](https://www.planetargon.com/)**
>
> Planet Argon is a Ruby on Rails development agency specializing in maintenance and support for existing Rails apps. Based in Portland, OR, Planet Argon has been a member of the Rails community since 2004.

[http://teknot.us](http://teknot.us) [blog]  
teknotus [freenode IRC]  
+1 503 445 2457  
+1 877 55 ARGON [toll free]  
+1 815 642 4068 [fax]

---

<div class="post-metadata">

**Author:** ![swaroopkanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@swaroopkanth](https://www.ruby-forum.com/u/swaroopkanth)\
**Post date:** [August 14, 2007, 1:44am UTC](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946/4 "2007-08-14T01:44:41Z")

</div>

Definitelly Nginx + Mongrel is a great combo…

Does anyone know how exactly Nginx configuration works? By default there  
is no path under Location / {} and still “Welcome to Nginx” is  
displayed… is Nginx actually serving some file or does it have set  
internally IF no path then produce welcome message…?

Also curious about server\_name… if I specify [www.server.com](http://www.server.com) there,  
I can still access this vhost with some other uri, that also points to  
the same ip (but is not listed in server\_name line)… how come?

thanx  
david

---

<div class="post-metadata">

**Author:** ![swaroopkanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@swaroopkanth](https://www.ruby-forum.com/u/swaroopkanth)\
**Post date:** [August 14, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946/5 "2007-08-14T20:31:51Z")

</div>

I know this is out of fashion, but isn’t Apache + mod\_fcgid also  
fast ?  
mod\_fcgid also manages the number of fast-cgi processes by itself so  
you don’t have to decide in advance how many ‘server instances’ to  
run. (It kills unnecessary instances ans spawns fresh ones on demand).  
Is it that bad an option ?  
Nadav

On Aug 13, 9:29 pm, Daniel Patrick Johnson

---

<div class="post-metadata">

**Author:** ![swaroopkanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@swaroopkanth](https://www.ruby-forum.com/u/swaroopkanth)\
**Post date:** [August 15, 2007, 1:28am UTC](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946/6 "2007-08-15T01:28:21Z")

</div>

Nadav,

```
I wouldn't say there is a performance issue (not without a

```

benchmark in my hands) but FastCGI is a complex protocol, Apache’s  
implementation can be quite difficult to manage and keep running  
smoothly. Many people prefer to setup a Lighttpd or a Nginx to talk  
proxy to Apache and let those do the FastCGI stuff.

–  
Aníbal Rojas

> **[Home - Has Many Developers](https://hasmanydevelopers.com/)**
>
> We are the best choice for your building design and development

> **[RUBYCORNER.COM](https://www.rubycorner.com/)**
>
> RUBYCORNER.COM - Contact us for any business inquiries

> **[Sin título](https://www.tumblr.com/anibal)**
>
> Follow @anibal and get more of the good stuff by joining Tumblr today. Dive in!
