nginx web directory access permission problem
为情所困
为情所困 2017-05-16 17:07:24
0
2
443

Set the nginx web directory. For example, www.test.com corresponds to the /var/www/test/ directory. How to prevent the files in the /var/www/test/ceshi/ directory from being accessed

为情所困
为情所困

reply all(2)
阿神

Try this:

location  /test/ceshi { 
          deny all; 
          return 403; 
}
滿天的星座

Files that are not allowed to be accessed are placed in the web directory. What does your company's security department do...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!