Answer the question
In order to leave comments, you need to log in
NGINX: how to combine all the rules in a location into one?
There is such a config in NGINX:
location ~* ^/admin/(imports|module|libraries|systems)/ {
deny all;
}
location ~* ^/admin/plugins/(gaapi|pdf|php_query)/ {
deny all;
}
location ~* ^/admin/view/templates/ {
deny all;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question