Welcome! Log In Create A New Profile

Advanced

nginx http auth module query

February 16, 2012 10:49PM
Hi,

I have the following use case -

I have nginx running at port 80 and a php hiphop server running at 4247. I want to achieve the following configuration -

Whenever a request is received at nginx port 80, it should be sent to some auth_url (say auth.php) and if it is authorized then it should be forwarded/proxied to hiphop server running at 4247. If not some error page should be thrown.

I was looking through ngx_http_auth_request_module and other inbuilt modules. But I have the following doubts -

1) What could the possible config look like where both ngx_http_auth_request_module and proxy_pass are included?
2) For my auth.php, what should it return true/false or something else?

Thanks,
Karan
Subject Author Posted

nginx http auth module query

karanj February 16, 2012 10:49PM

Re: nginx http auth module query

António P. P. Almeida February 16, 2012 11:02PM

Re: nginx http auth module query

karanj February 16, 2012 11:08PM

Re: nginx http auth module query

António P. P. Almeida February 16, 2012 11:30PM

Re: nginx http auth module query

karanj February 17, 2012 03:53AM

Re: nginx http auth module query

karanj February 17, 2012 03:57AM

Re: nginx http auth module query

Maxim Dounin February 17, 2012 06:28AM

Re: nginx http auth module query

karanj February 17, 2012 08:30AM

Re: nginx http auth module query

karanj February 17, 2012 08:38AM

Re: nginx http auth module query

Maxim Dounin February 17, 2012 09:20AM

Re: nginx http auth module query

karanj February 17, 2012 10:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 166
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