Web servers provide the ability to host web site content. Unless there is a need to run the system as a web server, it is recommended that the packages be removed to reduce the potential attack surface. Note: Several http servers exist. They should also be audited, and removed, if not required.
Solution
Run the following command to remove httpd and nginx : # dnf remove httpd nginx