Does "include" use the "configuration prefix" or the "path prefix"?

hroku003 at hroku003 at
Mon Apr 11 19:54:58 UTC 2016

THank you very much for confirmation.
Is this documented anywhere?

I looked at various places:
and I could not find it. (I also tried reading the C source, got lost due to my lack of C experience.)
- diego

On Monday, April 11, 2016 2:43 PM, Maxim Dounin <mdounin at> wrote:

Yes, this is correct behaviour.  Configuration-specific paths like 
in the "include" directive are resolved relative to the conf prefix, 
that is, relative to the directory where nginx.conf file resides.

Maxim Dounin

nginx mailing list
nginx at

More information about the nginx mailing list