Welcome to Centmin Mod Community
Register Now

Not A Bug Duplicates more_set_headers X-Powered-By

Discussion in 'Bug Reports' started by AHTOLLlKA, Dec 20, 2020.

  1. AHTOLLlKA

    AHTOLLlKA New Member

    22
    2
    3
    Dec 1, 2017
    Ratings:
    +6
    Local Time:
    5:15 PM
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.19.0
    • PHP Version Installed: 7.3.18
    • MariaDB MySQL Version Installed: 10.3.27
    • When was last time updated Centmin Mod code base ? : 3 days ago
    • Persistent Config:
      Code (Text):
      NGINX_SSLCACHE_ALLOWOVERRIDE='y'
      NGINX_STAPLE_CACHE_OVERRIDE='y'
      NGINX_STAPLE_CACHE_TTL='86400'
      SET_DEFAULT_MYSQLCHARSET='utf8mb4'
      AUTOHARDTUNE_NGINXBACKLOG='y'
      ZSTD_LOGROTATE_NGINX='y'
      ZSTD_LOGROTATE_PHPFPM='y'
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
      SELFSIGNEDSSL_ECDSA='y'
      NGINX_LIBBROTLI='y'
      NGXDYNAMIC_BROTLI='y'
      PHP_PGO_ALWAYS='y'
      PHP_PGO='y'
      PHP_BROTLI='y'
      PHP_LZFOUR='y'
      PHP_LZF='y'
      PHP_ZSTD='y'
      PHPFINFO='y'
      

    i comment line more_set_headers "X-Powered-By: centminmod";
    in /usr/local/nginx/conf/nginx.conf
    but after some times i found in this config file many duplicates...
    how i can totally remove this header tag ?

     

    Attached Files:

  2. eva2000

    eva2000 Administrator Staff Member

    47,181
    10,668
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,573
    Local Time:
    12:15 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    take it you didn't read the nginx.conf comments that come with those directives ? ;)

    Code (Text):
    # sets Centmin Mod headers via headers more nginx module
    # https://github.com/openresty/headers-more-nginx-module
    # don't remove the first 2 lines as centmin mod checks to see if they're
    # missing and re-adds them anyway. Just uncomment the 3rd & 4th lines
    # which is used to override the Server header to what you want = nginx
    # and remove the X-Powered-By header + restart nginx service
    # do not disable headers more nginx module itself as it's required for
    # other centmin mod features like redis nginx level caching & letsencrypt
    # integration in vhosts created by addons/acmetool.sh
    more_set_headers "Server: nginx centminmod";
    more_set_headers "X-Powered-By: centminmod";
    #more_set_headers "Server: nginx";
    #more_clear_headers "X-Powered-By";
    

    in quotes
     
  3. AHTOLLlKA

    AHTOLLlKA New Member

    22
    2
    3
    Dec 1, 2017
    Ratings:
    +6
    Local Time:
    5:15 PM
    sorry
    my mistake, I now made edits due to the recommendations in the comments
    thank you eva2000 as always :)