The situation is as follows I have 2 servers. 1 is responsible for backend (all forum files are located there) 2 is responsible for proxy (translates front and sends requests to back server). How can I deny access to /admin.php for all ip except mine conditionally 94.23.67.54. Should I configure the rule in which file and on which server (front or back). On back server apache works, on front nginx. I do this on the backend in the main root .htaccess
<Files “admin.php”>
Order allow,deny
Allow from 94.23.67.54
Deny from all
</Files>
<Files “admin.php”>
Order allow,deny
Allow from 94.23.67.54
Deny from all
</Files>