Recreating the problem, showing the problematic load_module lines coming from grommunio-common:
[user@host ~]$ sudo head /etc/nginx/nginx.conf
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
[user@host ~]$ sudo dnf reinstall grommunio-common -y
Updating Subscription Management repositories.
Last metadata expiration check: 2:27:50 ago on Tue 28 Jan 2025 09:29:54 GMT.
Dependencies resolved.
=============================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================
Reinstalling:
grommunio-common x86_64 26.a6f127d-44.3 grommunio 14 k
Transaction Summary
=============================================================================================================================================================================================
Total download size: 14 k
Installed size: 8.6 k
Downloading Packages:
grommunio-common-26.a6f127d-44.3.x86_64.rpm 80 kB/s | 14 kB 00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 78 kB/s | 14 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Reinstalling : grommunio-common-26.a6f127d-44.3.x86_64 1/2
Running scriptlet: grommunio-common-26.a6f127d-44.3.x86_64 1/2
Cleanup : grommunio-common-26.a6f127d-44.3.x86_64 2/2
Verifying : grommunio-common-26.a6f127d-44.3.x86_64 1/2
Verifying : grommunio-common-26.a6f127d-44.3.x86_64 2/2
Installed products updated.
Reinstalled:
grommunio-common-26.a6f127d-44.3.x86_64
Complete!
[user@host ~]$ sudo head /etc/nginx/nginx.conf
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
load_module modules/ngx_http_brotli_static_module.so;
load_module modules/ngx_http_brotli_filter_module.so;
load_module modules/ngx_http_vhost_traffic_status_module.so;
[user@host ~]$
The modules themselves are getting loaded fine from their new locations. Grommunio added config files in /usr/share/nginx/modules
that take care of it when they moved the modules:
[user@host ~]$ cat /usr/share/nginx/modules/mod-brotli.conf
load_module "/usr/lib64/nginx/modules/ngx_http_brotli_filter_module.so";
load_module "/usr/lib64/nginx/modules/ngx_http_brotli_static_module.so";
[user@host ~]$ cat /usr/share/nginx/modules/mod-vhost-traffic-status.conf
load_module "/usr/lib64/nginx/modules/ngx_http_vhost_traffic_status_module.so";
It's just the load_module lines getting added to nginx.conf directly that cause the problem.