Answer the question
In order to leave comments, you need to log in
How to configure ip access in nginx?
Hello!
Tell me how to configure access to nginx by ip, so http://111.222.333.444/site1 ?
Answer the question
In order to leave comments, you need to log in
# Возможные контексты: http, server
server {
...
# Запретить доступ всем кроме разрешенных IP
allow 192.168.1.0/24;
deny all;
...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question