Relocatable installations

Michael Williamson mike at zwobble.org
Mon Nov 5 21:24:20 UTC 2012


Hello,

Is it possible to compile nginx such that installations can be moved?
For instance, say we install nginx to /tmp/original/nginx:

    ./configure --prefix=/tmp/original/nginx
    make
    make install

And we then move the installation directory to /tmp/relocated/nginx:

    mv /tmp/original/nginx /tmp/relocated/nginx

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?

Thanks

Mike



More information about the nginx mailing list