Hello i try to deny access for externe IP to my URL admin.php of my website with nginx.
I have a jirafeau server with a example.com/admin.php I try to deny acces for this page but dont work. I am new with nginx this is my conf :
location / { try_files $uri $uri/ /admin.php; deny all; allow X.X.X.X/24; }
this deny all the externe ip of my website i just need deny acces to admin.php
thx for the help!