node.js - how to create nginx file for mlab database collection search -


i want task first extract details url like,if have url like,

http://example.com/country/city/name

then use [country,city,name] find in mlab database collection, "landmarks" collection,

and select "_id" of combination stored in "landmarks" collection, forward ,

http://api.example.com/landmarks/_id

with request, response header , logged in user in request header , response there on site example.com

how create db search file in nginx before forwarding next url ?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -