Does NginxMailAuthModule support multiple http_auth servers now

Hey, I’m deploying my mail server and use nginx as the mail proxy. I
tend to use multiple http_auth servers to balance the load. Can I write
multiple “http_auth” directives? Or can I use a upstream block to
indicate those servers?

Many thanks.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,120930,120930#msg-120930

Hello!

On Wed, Aug 18, 2010 at 05:50:19AM -0400, speedfirst wrote:

Hey, I’m deploying my mail server and use nginx as the mail proxy. I
tend to use multiple http_auth servers to balance the load. Can I write
multiple “http_auth” directives? Or can I use a upstream block to
indicate those servers?

No.

Usual aproach is to configure http in the same nginx and
proxy_pass/fastcgi_pass/whatever with appropriate balancing and
redundancy, e.g.

mail {
auth_http 127.0.0.1:8080/mailauth;
}

http {
upstream auth-backends {
server …
server …
}

server {
    listen 127.0.0.1:8080;

    location = /mailauth {
        proxy_pass http://auth-backends;
    }
}

}

Maxim D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs