Re: HTTP Authentication through database

2015-10-22 Thread itpp2012
These might get you going: https://www.nginx.com/resources/wiki/start/topics/examples/imapauthenticatewithapachephpscript/ https://groups.google.com/forum/#!msg/nginx-rtmp/y028v8RVx9o/dND4THOLUc0J Posted at Nginx Forum: https://forum.nginx.org/read.php?2,262394,262401#msg-262401

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

Re: HTTP Authentication through database

2015-10-22 Thread itpp2012
There are many ways to do this with Lua, https://www.google.nl/#q=nginx+lua+authentication Even via a database, https://github.com/openresty/lua-resty-mysql Posted at Nginx Forum: https://forum.nginx.org/read.php?2,262394,262396#msg-262396 ___ nginx ma

Re: HTTP Authentication through database

2015-10-22 Thread lhmwzy
How about using ngx_lua? 2015-10-22 16:05 GMT+08:00 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 8

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