2/15/2023 0 Comments Httpd hide apache server signature![]() ![]() Http:///turn-off-server-signature-apache-web-server.htmlĬopyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger. $ sudo service apache2 restart (Debian, Ubuntu or Linux Mint)$ sudo service httpd restart (CentOS/RHEL 6)$ sudo systemctl restart rvice (Fedora, CentOS/RHEL 7, Arch Linux) ServerSignature Off // hide the Apache version information ServerTokens Prod // although the first command is not directly displayed on the page, it is included in the response header. We can add two lines of information to this file. ![]() Other systems (ubuntu, Debian) $ sudo vi /etc/apache2/nf ![]() I am using centos (the same is true for fedora and RHEL) $ sudo vi /etc/httpd/conf/nf Change the uncommented line, likely ServerTokens OS, or comment out the line and create a new line to hide the Apache version and OS from HTTP headers: ServerTokens Prod If you don’t see the ServerTokens and ServerSignature sections, simply add the necessary lines to the bottom of your configuration file. For example, we usually find the following information. Sometimes, to prevent malicious attacks from the security perspective, we can hide the server information. Disable Apache web server signature How to turn off server signature on Apache web server, apachesignature ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |