• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Disable HTTP header X-Powered-By: PleskLin

  • Thread starter Deleted member 121791
  • Start date
D

Deleted member 121791

Guest
Plesk 11 inserts in Apache and NGinx config files lines like
Header add X-Powered-By PleskLin
or
add_header X-Powered-By PleskLin;


How can i disable this behaviour globally?
 
You can edit:

Code:
/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php

and then thereafter you run

Code:
 /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
There's a documentation for customizing Apache and NGINX templates here. Essentially you create /usr/local/psa/admin/conf/templates/custom/ folder and place your customized template versions there. That way your changes will not be lost on the next package update (i.e. Panel upgrade or earlier), but you may miss important changes in the original templates this way (and have various weird problems in the future).

Alternatively, you may do as abdi suggested. Be warned though, your changes will be lost on next package update.

So, choose your poison.
 
Last edited:
Thank Nikolay,
The file need change is /usr/local/psa/admin/conf/templates/custom/nginxDomainVirtualHost.php
then run command /usr/local/psa/admin/sbin/httpdmng --reconfigure-all.
Work for me!
 
Let me revive the thread to say it is in /usr/local/psa/admin/conf/templates/default/server.php on the current Plesk version.
 
Back
Top