Learn about Centmin Mod LEMP Stack today
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 Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    6:16 PM
    Mainline
    10.2
    From drop.conf
    What security exploit does it block?
    Thanks!
     
  2. wmtech

    wmtech Member

    67
    17
    8
    Jul 22, 2017
    Ratings:
    +41
    Local Time:
    12:16 PM
    This blocks hidden and temporary files (mostly created by text editors) from being served and logged.

    For Example: "/.htaccess" or "/file~"
     
    • Like Like x 1
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    36,012
    7,898
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,179
    Local Time:
    8:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yeah usually hidden dot . files etc
     
    • Like Like x 1
  4. rdan

    rdan Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    6:16 PM
    Mainline
    10.2
    Anyway I can run those command on SSH/CLI to list all match file?
     
  5. eva2000

    eva2000 Administrator Staff Member

    36,012
    7,898
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,179
    Local Time:
    8:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Probably can use recursive grep or find command to list them :)
     
..