## These locations would be hidden by .htaccess normally location /app/ { deny all; } location /includes/ { deny all; } location /lib/ { deny all; } location /media/downloadable/ { deny all; } location /pkginfo/ { deny all; } location /report/config.xml { deny all; } location /var/ { deny all; } location /var/export/ { ## Allow admins only to view export folder auth_basic "Restricted"; ## Message shown in login window auth_basic_user_file htpasswd; ## See /etc/nginx/htpassword autoindex on; } location /. { ## Disable .htaccess and other hidden files return 404; } location @handler { ## Magento uses a common front handler rewrite / /index.php; }
举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )
GMT+8, 2024-11-17 20:47 , Processed in 0.024766 second(s), 16 queries .
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.