Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to forbid access to files server wide via nginx template

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
bestony
Posts: 17
Joined: Sat Mar 07, 2015 5:22 pm
Contact:
Contact bestony
Website

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

Post by bestony » Sun Apr 19, 2015 12:05 am

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Mon Apr 20, 2015 2:36 pm

GreenUnicorn wrote:well i need it server wide, not just for one user
Use this special template for destined users and rebuild web.
Doh )
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Tue Apr 21, 2015 2:37 pm

GreenUnicorn wrote:which special template?
Yep, make new template your own template with restriction and use for server users.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password