Auth_request PHP question

2015-10-26 Thread JaminVP
Greetings, I managed to get Nginx running with php-scripts, but I don't understand how the script is supposed to authenticate through auth_request. What is the script supposed to do to reject a request? I tried the header() function but that doesn't do much. Any ideas? Posted at Nginx Forum: ht

Re: HTTP Authentication through database

2015-10-22 Thread JaminVP
Whilst trying out the auth_request module I figured I could run a local php file that connects to a database and checks if the user is valid. I cannot figure out how to run the php script though, any ideas? This is my nginx.conf: events { worker_connections 10; } http { upstream ela

HTTP Authentication through database

2015-10-22 Thread JaminVP
Greetings, I recently stumbled onto Nginx while researching a way to protect my Elasticsearch server without using Elastic Shield. My setup has a Windows Server box containing a webserver which has Kibana deployed on port 8080. The box also runs Elasticsearch as a service which listens to port 92