if ,-f and variables
Sean Allen
sean at ardishealth.com
Thu Feb 28 01:12:21 MSK 2008
>>
>
> 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.
More information about the nginx
mailing list