• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Question ServerSignatur turn off

Hi hume1991,

the "ServerSignature" can be turned off for your apache - webserver at the serverwide webserver - configuration file "apache2.conf" ( Debian/Ubuntu - based systems ) or "httpd.conf" ( CentOS/RHEL - based systems ).

Example to add:
Code:
...
ServerSignature Off
ServerTokens Prod
...
 
I've changed it under /etc/apache2/apache2.conf. I could not see any changes. I have rebooted Apache.
I have added under /etc/apache2/apache2.conf

ServerSignature Off
ServerTokens Prod

Header:

HTTP/1.1 200 OK Date: Tue, 27 Jun 2017 14:39:42 GMT Server: Apache X-Powered-By: PHP/7.0.20 P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM" Expires: Wed, 17 Aug 2005 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Set-Cookie: 9979992104c464a6cf7609dd3f830a86=o22c3k59ohhchujkopl1v21gj1; path=/; HttpOnly Last-Modified: Tue, 27 Jun 2017 14:39:42 GMT Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 8521 Content-Type: text/html; charset=utf-8

I have Ubuntu 14.04.5 LTS
 
Hi hume1991,

could you pls. tell us, WHAT you would like to change/modify? If you desire to change/modify "X-Powered-By: PHP/7.0.20", pls. be aware, that this is a PHP - depending setting, which can be set in your depending "php.ini" .

Examples to find and replace all serverwide "php.ini" - files, with the desire to set "expose_php = Off" ( => PHP: Description of core php.ini directives - Manual )
Code:
cd /etc/php
find ./ -type f -exec sed -i -e 's/expose_php = On/expose_php = Off/g' {} \;

cd /etc/php5
find ./ -type f -exec sed -i -e 's/expose_php = On/expose_php = Off/g' {} \;

cd /opt/plesk/php
find ./ -type f -exec sed -i -e 's/expose_php = On/expose_php = Off/g' {} \;
 
Hello,

With me stands with all expose_php = off. I would not show the value value: PHP / 7.0.20. I want to hide the ServerSiganture at Apache. I do not know how far this is interest, but most sites use SSL.
 
Back
Top