猛然发现通过http://ip:端口号/路径/config.ini竟然能下载项目代码的配置文件,检查nginx配置,原来是没有加限制,立即加上,并记录如下:
location ~* \.(ini|docx|txt|doc)$ { deny all; }
转载:http://blog.csdn.net/ligaofeng/article/details/44872011
猛然发现通过http://ip:端口号/路径/config.ini竟然能下载项目代码的配置文件,检查nginx配置,原来是没有加限制,立即加上,并记录如下:
location ~* \.(ini|docx|txt|doc)$ { deny all; }
转载:http://blog.csdn.net/ligaofeng/article/details/44872011
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。