Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
tux:disable_apache_signature [2013/04/13 12:16] wikisysop |
tux:disable_apache_signature [2013/04/13 18:31] (aktuell) wikisysop |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | [[:tux|{{ :linux.png?40|}}]] | ||
=====Apache/PHP: Serversignatur deaktivieren===== | =====Apache/PHP: Serversignatur deaktivieren===== | ||
Der Apache Webserver bietet in seiner Standardeinstellung Informationen über die verwendeten Versionen (Apache und PHP) und des zugrunde liegendem Betriebssystems an: | Der Apache Webserver bietet in seiner Standardeinstellung Informationen über die verwendeten Versionen (Apache und PHP) und des zugrunde liegendem Betriebssystems an: | ||
Zeile 41: | Zeile 42: | ||
Das Anzeigen der verwendeten >><fc #008000>PHP</fc><< Version wird in der PHP Konfigurationsdatei >><fc #008000>/etc/php5/apache2/php.ini</fc><< gesteuert. Hier ist der Parameter >><fc #008000>expose_php</fc><< auf >><fc #008000>Off</fc><< zu stellen: | Das Anzeigen der verwendeten >><fc #008000>PHP</fc><< Version wird in der PHP Konfigurationsdatei >><fc #008000>/etc/php5/apache2/php.ini</fc><< gesteuert. Hier ist der Parameter >><fc #008000>expose_php</fc><< auf >><fc #008000>Off</fc><< zu stellen: | ||
- | <box green round>; //<fc #808080>Decides whether PHP may expose the fact that it is installed on the server | + | <box green round|/etc/php5/apache2/php.ini>; //<fc #808080>Decides whether PHP may expose the fact that it is installed on the server |
; (e.g. by adding its signature to the Web server header). It is no security | ; (e.g. by adding its signature to the Web server header). It is no security | ||
; threat in any way, but it makes it possible to determine whether you use PHP | ; threat in any way, but it makes it possible to determine whether you use PHP | ||
Zeile 52: | Zeile 53: | ||
<xterm># <fc #008000>/etc/init.d/apache2 reload</fc></xterm> | <xterm># <fc #008000>/etc/init.d/apache2 reload</fc></xterm> | ||
- | Danach werden das Betriebssystem, die Apache und PHP Version nicht mehr angezeigt: | + | Danach werden das Betriebssystem sowie die Apache und PHP Version nicht mehr angezeigt: |
<xterm>$ <fc #008000>wget --save-headers -O- -q http://wiki.prontosystems.org</fc> | <xterm>$ <fc #008000>wget --save-headers -O- -q http://wiki.prontosystems.org</fc> |