Relocatable installations

Michael Williamson mike at zwobble.org
Mon Nov 5 21:52:29 UTC 2012


> > Is there a way to run nginx in its new directory as though it had been 
> > installed there directly, using either compile- or run-time options?
> 
> You can use the -p switch after 'nginx' binary to change the default
> install time prefix (and/or -c for different path for config file).

Aha! That seems to be what I'm looking for. Not sure how I missed that
-- I think I must have been expecting it to be a compile-time option
rather than a run-time option.

Thanks for pointing it out.

Mike



More information about the nginx mailing list