On Wed, Feb 27, 2008 at 05:12:21PM -0500, Sean Allen wrote:
The "root" directive may be set in eny place of http, server, or
locacation:
it will be properly set or inherited:
http {
server {
location / {
# here root is /path
}
}
root /path;
}
But this is not true for "set" directives: they are executed in order
of thier apperance.
include /ah/sites/colon365.co.uk/conf/nginx/base;
set $base /ah/sites/colon365.co.uk;
include /ah/sites/colon365.co.uk/conf/nginx/maintenance;
using $document_root, here it is "root ''",
because $root is still undefined
include /ah/conf/nginx/www-shared;
include /ah/conf/nginx/root;
set $root $base/public;
root $root;
You should to set "set $root $base/public;" early.
can you use variables in access_log setup, ie path to file?
access_log $some_thing/access.log combined;
i had a problem with that before but it was probably this exact issue.
No, nginx does not support variables in log names.