找 apache2 資料時,看到這個不錯的設定,可以避免 apache2 版本資料輕易被外人查出(在404找不到頁面的出現時,版本就自動跑出來啦)

OS version:Debian 4.0r0

Apache version:Apache2

1.edit the file /etc/apache2/apache2.conf

 #nano  /etc/apache2/apache2.conf

2.past these text at the last , save and leave

 ServerTokens ProductOnly
 ServerSignature Off

3. restart apache2

 #/usr/sbin/apache2ctl  restart

4.finish !! 

相關文章:

很大的萊爾富 – 楊梅高獅店
很大的萊爾富 – 楊梅高獅店

大溪橋夜空
大溪橋夜空

花園紅了 Red Garden Resort
花園紅了 Red Garden Resort

小莫 Part I @桃園神社
小莫 Part I @桃園神社

寒冬中的溫暖午後-波斯菊
寒冬中的溫暖午後-波斯菊

[隨拍]龍潭大池花火
[隨拍]龍潭大池花火

No tag for this post.