简体   繁体   中英

How to hide the 'server' parameter in the apache2 http response header?

My question is posed in the title. But I ask also, instead of hiding it, isn't it possible to replace it by a custom value? Maybe over php or by editing the apache2 config?

Thank's in advance!

You could use mod_security for Apache, there is a directive called SecServerSignature it allows you to change the value of the Server header.

Another way would be to edit the the source code :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM