A
A
AlgiZex2017-03-04 20:17:24
Nginx
AlgiZex, 2017-03-04 20:17:24

How to set up Nginx on debian?

how to disable direct link access to txt files
if you insert server{ or location{ it swears "server" directive is not allowed... tried it in different variations, it doesn't work. the whole config is in http{index, etc.}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Falseclock, 2017-03-04
@Falseclock

location ~ /\.txt {
     deny all;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question