Join the community today
Become a Member

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

    3,940
    962
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,315
    Local Time:
    4:59 PM
    1.11
    10.2
    From drop.conf
    What security exploit does it block?
    Thanks!
     
  2. wmtech

    wmtech New Member

    14
    7
    3
    Jul 22, 2017
    Ratings:
    +9
    Local Time:
    9:59 AM
    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

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    6:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah usually hidden dot . files etc
     
    • Like Like x 1
  4. RoldanLT

    RoldanLT Well-Known Member

    3,940
    962
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,315
    Local Time:
    4:59 PM
    1.11
    10.2
    Anyway I can run those command on SSH/CLI to list all match file?
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    6:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    Probably can use recursive grep or find command to list them :)