Turning off Server Signature on Apache

Can the question if the error page appears on the website hosted in Apache kok appear complete version and Linux distro that is used along with IP address. Yes like this:

Apache 2.4.20 (Debian) Server at Port 443

The intention is to remove the additional information for security reasons.

This is very easy, but it needs to edit the Apache configuration:


nano /etc/apache2/apache2.conf


nano /etc/httpd/conf/httpd.conf

Then in it find the line and change the value from On to Off as below:

ServerSignature Off

Finally restart the Apache web server process:

  • Debian/Ubuntu
    service apache2 restart
  • CentOS
    service httpd restart

    Completed and can be tested again. There should not be any information other than the error itself.

Pos terkait

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

Situs ini menggunakan Akismet untuk mengurangi spam. Pelajari bagaimana data komentar Anda diproses.