0

how to prevent access the hidden files in nginx

hello,

I am new for nginx, i want to how to prevent aaccessing hiddenfiles in nginx.... if any one knows the solutions please help....

jayden
asked Sep 17, 2017
1 Answer
0

you can use following rule for deny all hidden files and directory, you just add following rule in your nginx configuration file.

location ~ /\. {
            deny  all;
        }
View More
piraisudanrajendran
answered Sep 18, 2017
Your Answer
||||
x
 
100:0