Page 1 of 1

Re: How to forbid access to files server wide via nginx temp

Posted: Sun Apr 19, 2015 12:05 am
by bestony
I think you shou do it at your Personal Nginx.conf .Location at /home/username/conf/web/nginx.conf

Code: Select all

location =/2.php{ 
return 404; 
} 
you can add directory on it .
may be place it before other localtion code.

Re: How to forbid access to files server wide via nginx temp

Posted: Mon Apr 20, 2015 2:36 pm
by skurudo
GreenUnicorn wrote:well i need it server wide, not just for one user
Use this special template for destined users and rebuild web.
Doh )

Re: How to forbid access to files server wide via nginx temp

Posted: Tue Apr 21, 2015 2:37 pm
by skurudo
GreenUnicorn wrote:which special template?
Yep, make new template your own template with restriction and use for server users.