Welcome to Centmin Mod Community
Register Now

Nginx Digest Auth?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Liam W, Feb 7, 2015.

  1. Liam W

    Liam W Member

    57
    16
    8
    Jun 26, 2014
    Barrow-in-Furness, Cumbria, England
    Ratings:
    +20
    Local Time:
    8:51 AM
    nginx/1.9.11
    10.1.11
    I used digest auth for my admin panel on my other sites, however looking at Google Nginx requires an extra module to support digest. Does Centmin come with this installed, and if not how do I make it add it in?

    (I am using basic auth for now, however if it is possible to use digest I would like to :))

    Liam
     
    Last edited: Feb 8, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    30,144
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,132
    Local Time:
    5:51 PM
    Nginx 1.13.x
    MariaDB 5.5
    typing the command in SSH will show you what Centmin Mod Nginx is compiled with module wise.

    Code:
    nginx -V
    for Centmin Mod .07 stable
    for Centmin Mod .08 beta
    so no nginx http auth digest module is compiled in, but from what I see the nginx http auth digest module hasn't been updated in 3 yrs and only tested by the author and not production ready according to samizdatco/nginx-http-auth-digest · GitHub ? there's a more updated fork at atomx/nginx-http-auth-digest · GitHub which had last commit ~2 months ago though

    There's enough outstanding issues reported in the nginx auth digest issue tracker to be concerned ?

    As to compiling and added additional nginx modules to Centmin Mod Nginx, you can see 2 examples linked to at 123.08slowfs | Centmin Mod Community

    Good example of how to extend and add additional Nginx modules to Centmin Mod Nginx's default configuration.
    1. add to centmin.sh 2 variables to turn on and off the Nginx module integration and to specify module version number
    2. add to inc/downloadlinks.inc 2 new variables to define the Nginx module's file name and download url
    3. add to inc/downloads.inc the actual wget download routine for Nginx module and file validation check for tarball to ensure it's a valid tarball gzipped file
    4. add to inc/nginx_configure.inc the variable for Nginx configure option which either be set or empty depending on variable added in step 1 centmin.sh to turn on or off the module integration
    5. add to inc/nginx_upgrade.inc checknginxmodules function the Nginx module's source tarball gzipped file to make sure it is downloaded to and exists in /svr-setup. If it doesn't exist, it will be downloaed. So Nginx upgrade feature in centmin.sh menu option 4 will update older or existing Centmin Mod Nginx servers with the newly added Nginx module
     
    Last edited: Feb 8, 2015
    • Like Like x 1
  3. Liam W

    Liam W Member

    57
    16
    8
    Jun 26, 2014
    Barrow-in-Furness, Cumbria, England
    Ratings:
    +20
    Local Time:
    8:51 AM
    nginx/1.9.11
    10.1.11
    Yeah, I looked at the last commit time and I though it would be best to not use it. Shame...

    Liam
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,144
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,132
    Local Time:
    5:51 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yeah it's a shame - there's alot of neat nginx modules out there that haven't been updated in years heh