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
Post a Comment