Include files relative to nginx.conf

Hi,

the docs say that “Since version 0.6.7, paths are relative to
directory of nginx configuration file nginx.conf, but not to nginx
prefix directory.”

I have nginx.conf 0.7.21 in directory C:\foo\etc\windows\nginx.conf
and I run nginx with:

nginx -c C:\foo\etc\windows\nginx.conf

In nginx.conf I have an include as in:

location / {
include fastcgi.conf;
}

I was expecting nginx to open the fastcgi.conf file in
C:\foo\etc\windows\fastcgi.conf, but instead it opens the fastcgi.conf
in C:\nginx\conf\fastcgi.conf
I guess it’s not a linux / win difference, but I can try in linux if
you want to double check.

Am I misunderstanding the docs expecting include to include files
relative to the directory where nginx.conf is located? any
work-arounds to have the entire configuration in different directories
having relative paths in the includes?

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs