Does NginxMailAuthModule support multiple http_auth servers now

Maxim Dounin mdounin at mdounin.ru
Wed Aug 18 14:23:56 MSD 2010


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 Dounin



More information about the nginx mailing list