Join the community today
Register Now

Nginx Keep an nginx flag future upgrades.

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Shmee, Feb 5, 2018.

  1. Shmee

    Shmee New Member

    15
    2
    3
    Aug 27, 2014
    Space
    Ratings:
    +3
    Local Time:
    8:53 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 32bit or 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.08stable or 123.09beta01
    • Nginx Version Installed: i.e. 1.11.10
    • PHP Version Installed: i.e. 5.6.30 or 7.0.15
    • MariaDB MySQL Version Installed: i.e. 10.0.21 or 10.1.21
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:

      cat /etc/centminmod/custom_config.inc


      Post output in CODE tags.
     
  2. Shmee

    Shmee New Member

    15
    2
    3
    Aug 27, 2014
    Space
    Ratings:
    +3
    Local Time:
    8:53 PM
    sorry, I didn't post the body of the thread.

    I'm using nginx with --with-http_auth_request_module flag enabled.

    I was wondering how I can keep it persistent through upgrades, because I have an application dependent on it. I'm running the beta version. I only had to enable edit the upgrade/install file to get it working.

    Thanks
     
  3. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:53 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Centmin Mod 123.09beta01 has native support for http_auth_request_module nginx module though disabled by default via
    Code (Text):
    NGINX_AUTHREQ='n'            # http://nginx.org/en/docs/http/ngx_http_auth_request_module.html
    

    to enable it and override default, like any other Centmin Mod variable just add it to a persistent config file at /etc/centminmod/custom_config.inc as
    Code (Text):
    NGINX_AUTHREQ='y'
    

    Then whenever you recompile nginx via cenmtin.sh menu option 4, it will pick up persistent config file. This is explained on official centmin mod upgrade page at https://centminmod.com/upgrade.html#persistent :)
     
..