Welcome to Centmin Mod Community
Register Now

Nginx Can you please explain what are this code for?

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

  1. RoldanLT

    RoldanLT Well-Known Member

    4,157
    1,007
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,421
    Local Time:
    3:46 AM
    1.11
    10.2
    From drop.conf
    What security exploit does it block?
    Thanks!
     
  2. wmtech

    wmtech Member

    36
    14
    8
    Jul 22, 2017
    Ratings:
    +28
    Local Time:
    9:46 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

    33,681
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    5:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah usually hidden dot . files etc
     
    • Like Like x 1
  4. RoldanLT

    RoldanLT Well-Known Member

    4,157
    1,007
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,421
    Local Time:
    3:46 AM
    1.11
    10.2
    Anyway I can run those command on SSH/CLI to list all match file?
     
  5. eva2000

    eva2000 Administrator Staff Member

    33,681
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    5:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Probably can use recursive grep or find command to list them :)
     
..