JAWA icon indicating copy to clipboard operation
JAWA copied to clipboard

RHEL installer modifies the default nginx.conf

Open UniversalSuperBox opened this issue 3 years ago • 1 comments

I've noticed that the installer script for RHEL and CentOS modifies the default nginx.conf:

https://github.com/jamf/JAWA/blob/fbfdaf17b4f2d1370a92f396a2df927bcf1681e7/bin/rhel_installer.sh#L331-L334

Modifying the default config file could cause problems with multi-application deployments or existing proxy servers.

Instead, this script should act similar to Ubuntu with a small tweak. In Ubuntu, nginx modular configurations are loaded from /etc/nginx/conf.d/*.conf and /etc/nginx/sites-enabled/*.conf; the latter is loaded to provide a similar interface to Apache2 in Debian and Ubuntu. In RHEL, only /etc/nginx/conf.d/*.conf is loaded by default. This comes from the default config file's line include /etc/nginx/conf.d/*.conf;.

Therefore, JAWA should place its modular configuration inside the /etc/nginx/conf.d/ directory.

UniversalSuperBox avatar May 03 '22 17:05 UniversalSuperBox

Good point, and thanks for the insight & tip. Initial testing of the proposed changes were successful, so the RHEL installer will be updated accordingly. Thanks again

ball42 avatar May 06 '22 20:05 ball42

resolved in #46

ball42 avatar Apr 09 '24 22:04 ball42