Welcome! Log In Create A New Profile

Advanced

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

Ya-wen Lin
November 30, 2016 03:18PM
Hi,

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
directory.

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
/Users/me/html/data.

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

Thank you very much.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Ya-wen Lin November 30, 2016 03:18PM

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

Maxim Dounin December 01, 2016 09:16AM

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

Ya-wen Lin December 01, 2016 01:10PM

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

Maxim Dounin December 01, 2016 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready