Answer the question
In order to leave comments, you need to log in
How to block access to sites in NGINX?
The home server has Apache + NGINX (as a proxy).
Installed nextcloud, pgadmin4, smokeping. They are running through Apache.
Port 443 is forwarded on the router.
If you enter, then everything opens normally on the links:
https:///smokeping/
https:///pgadmin4/
https:///nextcloud/ ..But
I need to block the first two links "from outside".
Add item to nginx config
location /smokeping {
allow 192.168.11.0/25;
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