Welcome to Centmin Mod Community
Become a Member

Nginx Can you please explain what are this code for?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by rdan, Oct 18, 2017.

  1. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    6:57 AM
    Mainline
    10.2
    From drop.conf
    What security exploit does it block?
    Thanks!

     
  2. wmtech

    wmtech Active Member

    187
    44
    28
    Jul 22, 2017
    Ratings:
    +139
    Local Time:
    12:57 AM
    This blocks hidden and temporary files (mostly created by text editors) from being served and logged.

    For Example: "/.htaccess" or "/file~"
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah usually hidden dot . files etc
     
  4. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    6:57 AM
    Mainline
    10.2
    Anyway I can run those command on SSH/CLI to list all match file?
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Probably can use recursive grep or find command to list them :)