Instead of having HIPS (or something) looking for apache and editing httpd.conf. Perhaps it would make more sense to make the MFEhiplsm-apache-8.0.0-3881.RH6.x86_64 more intelligent.
The convention on RedHat flavored systems is to have apache module packages contain the module and a /etc/httpd/conf.d/<name>.load file. On RedHat 7 the files go in /etc/httpd/conf.modules.d/.
See "Configuration Layout" here: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Sy stem_Administrators_Guide/ch-Web_Servers.html
Also since the versions of Apache are known in RedHat and the packages are even taylored to the RH Version there is no need to include modules for versions of apache that aren't available.
MFEhiplsm-apache-8.0.0-3881.RH6.x86_64.rpm package would contain:
And /etc/httpd/conf.d/mfehip.load would contain:
MFEhiplsm-apache-8.0.0-3881.RH7.x86_64.rpm package would contain:
And /etc/httpd/conf.modules.d/mfehip.load would contain:
Also why are the modules copied to /.apach/? Is it really necessary? Why apach? Was apache too many characters?