W
W
Warington2021-12-15 06:38:24
Nginx
Warington, 2021-12-15 06:38:24

Nginx -V modules. What is the difference between --with-mail and --with-mail=dynamic?

Good day!
Can you please tell me the difference between
--with-mail
AND
--with-mail=dynamic

In the first case, the "mail" directive in the configuration works successfully, and in the second it swears:
nginx: [emerg] unknown directive "mail" in /etc/ nginx/conf.d/email.conf

How to make Nginx work in the second case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-12-15
@Warington

--with-mail- the module is statically linked, is an integral part of Nginx
--with-mail=dynamic- the module is dynamically linked, before using it, you need to connect it by setting the path to the module in the config.
In the second case, the module is most often assembled as a separate package, so it is enough to install it and everything will be written where it needs to be automatically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question