php - How I can allow only one IP by .htaccess in nginx admin? -
this question has reply here:
how can allow access single ip address via nginx.conf? 1 replyplease, how can allow 1 ip .htaccess in nginx admin ?
like in apache.
order deny,allow deny allow 111.222.333.444
but work in apache only
i want command's works in nginx admin ..
so can owner of ip, browse folder , files
note: utilize nginx admin on servers http://www.nginxcp.com/installation-instruction/
help me please
thanks.
edit nginx.conf:
server { ... allow 111.222.333.444; deny all; ... }
ps: nginx not back upwards .htaccess
if want limit specified directories:
server { ... location /users/111 { allow 111.222.333.444; deny all; } location /users/123 { allow 222.333.444.111; deny all; } ... }
php apache .htaccess nginx
No comments:
Post a Comment