Relocatable installations

Reinis Rozitis r at
Mon Nov 5 21:43:01 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).

./nginx -p /tmp/relocated/nginx


More information about the nginx mailing list