• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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