Dynamic module search paths?
Maxim Dounin
mdounin at mdounin.ru
Fri Feb 12 11:34:14 UTC 2016
Hello!
On Thu, Feb 11, 2016 at 02:03:45PM -0800, Yichun Zhang (agentzh) wrote:
> Hi folks
>
> It seems to me that the the load_module directive for loading NGINX
> dynamic modules just use the server prefix when resolving relative
> module DSO file paths specified in nginx.conf.
>
> Here is my wishlist: I hope that we can have support for module search
> paths specified via an external environment or an nginx command-line
> option so that nginx.conf can be more portable across different
> environments.
>
> This is particularly useful when distributing various NGINX-based
> applications where a single NGINX installation can serve multiple
> different applications with different server prefixes in the same box
> at the same time.
>
> What do you think?
I don't like this idea. We already have two prefixes in nginx,
and this is 1 more than it should be.
If needed, a symbolic link from prefix can be used to point nginx
to appropriate place.
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list