Welcome to Centmin Mod Community
Register Now

Beta Branch disable unneeded access_log and error_log directives in nginx.conf

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

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    no revert the manual change you did and just update 123.09beta01 and run centmin.sh once to auto fix it

     
  2. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    2:57 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    After updating Centminmod and re run it i got at my cnfig:

    Code:
    access_log  off;
    error_log   logs/error.log warn;
    Is that what i should get ?

    Just to verify and avoid any Nginx restart or in general issues :)
     
  3. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    7:57 PM
    Nothing changed in my nginx.conf

    Code:
    access_log  logs/access.log combined buffer=128k flush=5m;
    error_log   logs/error.log warn;
    if I manually change the access_log to off and restart nginx doesn't restart for me.
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    that's correct
    you're syntax is wrong, what @pamamolf has is correct
     
  5. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    2:57 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    You can set it to:
    Code:
    access_log  off;
    error_log   logs/error.log warn;
    
    We just post at the same time George :)
     
    Last edited: Sep 13, 2017
  6. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    7:57 PM
    Now the code is working. :)