Get the most out of your Centmin Mod LEMP stack
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

    30,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:44 AM
    Nginx 1.13.x
    MariaDB 5.5
    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 Premium Member Premium Member

    15
    3
    3
    Oct 17, 2015
    Florida, USA
    Ratings:
    +7
    Local Time:
    6:44 PM
    1.13.5
    10.1.28
    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

    30,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:44 AM
    Nginx 1.13.x
    MariaDB 5.5
    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.
     
    • Informative Informative x 1
  4. dcg

    dcg Premium Member Premium Member

    15
    3
    3
    Oct 17, 2015
    Florida, USA
    Ratings:
    +7
    Local Time:
    6:44 PM
    1.13.5
    10.1.28
    Gotcha. Thanks for the reply.