On Sat, May 10, 2014 at 01:07:25PM -0600, Chris Cappuccio wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   ch...@cvs.openbsd.org   2014/05/10 13:07:25
> 
> Modified files:
>       usr.sbin/nginx/src/os/unix: ngx_process_cycle.c 
> 
> Log message:
> Allow -p prefix to override user home directory for chroot() (Like
> openbsd-apache ServerRoot behavior)
> 
> Work continues to unify nginx behavior (Principle of Least Astonishment)
> 
> ok henning@

This seems to break my use of -p here

--- nginx.conf  Mon May  5 16:25:36 2014
+++ test.conf   Mon May 12 18:51:13 2014
@@ -45,7 +45,7 @@ http {
         listen       80;
         listen       [::]:80;
         server_name  localhost;
-        root         /var/www/htdocs;
+        root         /var/www/test/htdocs;
 
         #charset koi8-r;
 

# nginx -c /etc/nginx/test.conf -p /var/www/test/ 
nginx: [emerg] mkdir() "var/www/cache/client_body_temp" failed (2: No such file 
or directory)

The error did not happen before this latest round of nginx commits.
And as the cache files are specified at compile time does this
mean I now need to recompile nginx whenever I want to use a different
document root?

Reply via email to