Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to capture the username and password with my own form and then use those values with the Nginx ngx_http_auth_basic_module,rather than having the default Nginx box that comes up, asking for username and password? I know how to create the form, that is not part of my question.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I don't think you can solve your problem with ngx_http_auth_basic_module. I believe you need to use another module to achieve your desired result.

"ngx_http_auth_request_module" sounds like it would address your goals. It "allows authorization based on subrequest result". Here are some resources for it:

For a more detailed discussion of the topic, I recommend trying the Nginx mailing list.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.