Welcome! Log In Create A New Profile

Advanced

Re: IMAP: auth_http

Shawn Za
April 13, 2014 07:04PM
Does this location snippet go inside the mail directive or outside of
it in nginx.conf? I only have 1 backend, I am using it to proxy for http
but also need imap/smtp proxy for it. When i use location inside the
mail directive and reload nginx, it throws an error

Maxim Dounin wrote in post #1101072:
> Hello!
>
> On Sun, Mar 10, 2013 at 02:43:11PM -0700, Grant wrote:
>
>> >
>> > http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
>>
>> In that case I request for nginx's imap proxy to function more like
>> imapproxy which is easier to set up.
>
> The goal of nginx imap proxy is to route client's connections to
> different backends, which is very different from what imapproxy
> does. It's more like a perdition.
>
> If you want nginx to just proxy all connections to a predefined
> backend server, you may use something like
>
> location = /mailauth {
> add_header Auth-Status OK;
> add_header Auth-Server 127.0.0.1;
> add_header Auth-Port 8143;
> add_header Auth-Wait 1;
> return 204;
> }
>
> as a dummy auth script.
>
> --
> Maxim Dounin
> http://nginx.org/en/donation.html

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

IMAP: auth_http

Grant March 08, 2013 12:18AM

Re: IMAP: auth_http

Maxim Dounin March 10, 2013 12:42PM

Re: IMAP: auth_http

Grant March 10, 2013 05:44PM

Re: IMAP: auth_http

Maxim Dounin March 11, 2013 07:30AM

Re: IMAP: auth_http

Shawn Za April 13, 2014 07:04PM

Re: IMAP: auth_http

Shawn Za April 14, 2014 03:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready