Welcome! Log In Create A New Profile

Advanced

Re: Already loaded NGINX modules

Maxim Dounin
February 12, 2016 06:44AM
Hello!

On Thu, Feb 11, 2016 at 02:33:43PM -0800, Piotr Sikora wrote:

> Hey Yichun,
>
> > Currently when an NGINX module is statically linked against the NGINX
> > binary, the load_module directive bails out the server startup with
> > the error message "module already loaded" (or something like that).
> > Hopefully we can make this a nonfatal error (or provide an option to
> > make it nonfatal) because we can have more portable nginx.conf for
> > distributing NGINX-based applications.
>
> I disagree, because this would lead to unexpected behavior (since
> statically linked module can be slightly different from the dynamic
> module).
>
> Which version should be used at runtime in your non-fatal scenario and why?

+1.

If there is no need to load a module - there should be no
load_module directive in the configuration. Everything else is
likely to cause confusion.

This is very similar to duplicate directives in configuration -
and duplicate directives are rejected by nginx, for the same
reasons.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Re: Already loaded NGINX modules

Maxim Dounin 1260 February 12, 2016 06:44AM

Re: Already loaded NGINX modules

Yichun Zhang (agentzh) 311 February 12, 2016 11:52AM

Re: Already loaded NGINX modules

Maxim Dounin 323 February 12, 2016 08:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready