jayden
asked Sep 18 2017
Answer
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;
}
piraisudanrajendran
asked Sep 18 2017
edited Oct 05 2018
Related tutorials in how to prevent access the hidden files in nginx
Related forums in how to prevent access the hidden files in nginx
A common misconfiguration is that the 'session.save_path' directive is not pointing to a valid directory.
Jun 15 2019
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....