Results 1 to 5 of 5

Thread: Disable HTTP header X-Powered-By: PleskLin

  1. #1

    Default Disable HTTP header X-Powered-By: PleskLin

    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. #2

    Default

    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
    Abdi Joseph

    Level 3 Hands-On Premium Support @ $50/Per Month
    ==> PM for details <==



  3. #3
    Tera Poster
    Join Date
    Jul 2012
    Posts
    844

    Default

    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 by Nikolay.; Jul 1, 2012 at 10:22 AM.
    Serve this machine, as you would have fight it for you.


    1 out of 1 members found this post helpful.

  4. #4

    Default

    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. #5

    Default

    Custom template solved the problem.
    Thanks.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •