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 need to specify a path which, when hit, requires authentication. I've new to HAProxy and have been struggling with this for a while. Here is one attempt:

   acl auth_ok http_auth(site_users)  
     http-request path_beg /foo/bar auth realm foo if !auth_ok

I've created a user list called auth users, and got auth to work for the entire site. But, if someone hits say, /foo/bar they should be required to authenticate. Not other paths.

Any help is greatly appreciated!

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.