Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch update nginx.conf template server header setup

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 29, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:03 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update nginx.conf template server header setup

    - add optional override lines for server header and to optionally remove X-Powered-By headers without needing to disable headers more nginx module which is required for other centmin mod features like redis nginx level caching & letsencrypt integration in vhosts created by addons/acmetool.sh https://community.centminmod.com/posts/55081/

    Continue reading...

    123.09beta01 branch


     
  2. dcg

    dcg Member

    67
    24
    8
    Oct 17, 2015
    Florida, USA
    Ratings:
    +49
    Local Time:
    5:03 AM
    1.21.x
    10.3.x
    FYI
    It looks like centmin.sh will add:
    more_set_headers "X-Powered-By: centminmod";
    after the second more_set_headers if the header is exactly "Server: nginx"

    If I add a space after nginx: "Server: nginx " or have it say anything else "Server: blah" it does not add another centminmod.
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:03 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Yes that is correct as current detection is character/spacing specific. It's designed that way. Usually if end user edits Server header it means they don't want X-Powered-By header identifier too.
     
  4. dcg

    dcg Member

    67
    24
    8
    Oct 17, 2015
    Florida, USA
    Ratings:
    +49
    Local Time:
    5:03 AM
    1.21.x
    10.3.x
    Gotcha. Thanks for the reply.