Information
HTTP or web servers provide the ability to host web site content.
Rationale:
Unless there is a need to run the system as a web server, it is recommended that the
package be deleted to reduce the potential attack surface.
Solution
Run one of the following commands to disable httpd :
# chkconfig httpd off
# systemctl disable httpd
# update-rc.d httpd disable
Notes:
Additional methods of disabling a service exist. Consult your distribution documentation
for appropriate methods.
Several httpd servers exist and can use other service names. apache, apache2, lighttpd,
and nginx are example services that provide an HTTP server. These and other services
should also be audited.