Forum: Ruby on Rails Deploying on Nginx and Mongrel--what is http://mongrel?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
21cf908ef5877ec3a27799a9a269313a?d=identicon&s=25 Matt Culbreth (Guest)
on 2007-06-27 14:27
(Received via mailing list)
Hello Group,

I've got my Rails app deployed as a Mongrel cluster behind an Nginx
reverse proxy.  It's working great except for one small issue:  if I
have code that does a redirect_to <named route>, the browser is
redirecting to http://mongrel.  What I'd like to have it direct to is
"http://<my domain name>/<url>".  Does that make sense?

Here's my Nginx config file:

    upstream mongrel {


    server {
        listen       80;
        server_name  <my domain name>;
        root <my deployment path>;


        location / {
            proxy_pass  http://mongrel;
            proxy_redirect     off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For
This topic is locked and can not be replied to.