I have a standard version of Nginx (installed through
apt-get) running my production environment (Debian Jessie).
Now I want to compile the most recent release of Nginx from source with some extra modules for testing. The executable may sit anywhere, but I want to make sure not to accidentally overwrite my production version.
What I know: I need to
cd to nginx source directory and execute:
./configure --add-module=/path/to/some/module make make install
What I don't know: How to make sure that the test version doesn't install on top of the production version. Or how to install in a specific place I specify.
(I tried to read the man-pages on make but didn't come to any conclusive answer. I am rather inexperiences with compiling from source.)