How to forbid access to files server wide via nginx template
Re: How to forbid access to files server wide via nginx temp
I think you shou do it at your Personal Nginx.conf .Location at /home/username/conf/web/nginx.conf
you can add directory on it .
may be place it before other localtion code.
Code: Select all
location =/2.php{
return 404;
}
may be place it before other localtion code.
Re: How to forbid access to files server wide via nginx temp
Use this special template for destined users and rebuild web.GreenUnicorn wrote:well i need it server wide, not just for one user
Doh )
Re: How to forbid access to files server wide via nginx temp
Yep, make new template your own template with restriction and use for server users.GreenUnicorn wrote:which special template?