How to config the path for the dynamic module of nginx to access?

Ya-wen Lin arwin at
Wed Nov 30 20:15:46 UTC 2016


I've read the related documents and tried googling but the results are all
about how to assign the path to the module's implementation c code for
nginx to compile a module.

My module will read/write files upon end-user's request, and my question is
how to set the path so that my module will directly read/write in that

I found that without extra settings, my module will read/write the folder I
initiate nginx. For example, if I run sudo nginx where pwd is /Users/me/
html/data, then the dynamic module will read/write files from

What would be the best practice to set the path to access data for my

Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list