Separate Log for Robot Page Access

Maxim Dounin mdounin at mdounin.ru
Sun Feb 7 05:21:11 MSK 2010


Hello!

On Sat, Feb 06, 2010 at 04:45:41PM -0800, Wohbah wrote:

> It did work.  But I had to use
> 
>   -p "/"
>   
> on the nginx command line.  Otherwise path vars got broken; nginx forced a
> prefix.

nginx adds prefix to every path which doesn't start with '/' 
during configuration parsing (i.e. before variables are evaluated, 
which happens only during request processing).

If you are planning to use absolute paths constructed with 
variables in directives which take paths and have non-null prefix 
you should indicate absolute path by placing leading '/', e.g.

    root /$full_path;

Not sure this is documented somewhere though.

[...]

Maxim Dounin



More information about the nginx mailing list