Install httpd and setup below.
- Reduce infomation in response
Add the line "ServerTokens Prod" - Disable directory listing
Delete "Options Indexes" - Disable welcome page
Delete welcome.conf
Note: This setting was tested in version 2.4.6 of httpd.
none
# switch httpd service enabled/disabled
httpd_service_enabled: yes
none
- hosts: servers
roles:
- { role: tsyki.install-httpd, httpd_service_enabled: no }
BSD
Toshiyuki Imaizumi