Disable HTTP header X-Powered-By: PleskLin

Discussion in 'Parallels Plesk Panel 11.x for Linux Problems, Suggested Fixes, and How-To' started by GwenDragon, Jun 28, 2012.

  1. GwenDragon

    GwenDragon Bit Poster

    Messages:
    17
    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?
  2. abdi

    abdi Product Expert

    Messages:
    2,202
    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
  3. Nikolay.

    Nikolay. New Member

    Messages:
    844
    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: Jul 1, 2012
  4. sao sang mo

    sao sang mo New Member

    Messages:
    18
    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!
  5. GwenDragon

    GwenDragon Bit Poster

    Messages:
    17
    Custom template solved the problem.
    Thanks.

Share This Page