S
S
Sergey Pugovkin2017-05-21 15:06:46
Nginx
Sergey Pugovkin, 2017-05-21 15:06:46

How in nginx to deny access to a file/directory with a dot at the beginning, such as .htaccess?

How in nginx to deny access to a file/directory with a dot at the beginning, such as .htaccess?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2017-05-21
@Driver86

location ~ /\.ht {
            deny all;
        }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question