Banner Grabbing verhindern: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „kk“
 
Thomas (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
kk
=Apache=
==install modsecurity==
*apt-get install libapache2-modsecurity
==enable moduls==
*a2enmod headers
*a2enmod security2
==modsecurity.conf kopieren==
*cp /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
==modsecurity.conf anfügen==
SecRuleEngine on
ServerTokens Full
SecServerSignature "Microsoft-IIS/6.0"
==apache neustarten==

Version vom 31. August 2016, 16:34 Uhr

Apache

install modsecurity

  • apt-get install libapache2-modsecurity

enable moduls

  • a2enmod headers
  • a2enmod security2

modsecurity.conf kopieren

  • cp /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf

modsecurity.conf anfügen

SecRuleEngine on
ServerTokens Full
SecServerSignature "Microsoft-IIS/6.0"

apache neustarten