安全性:将 Web 应用程序外部的目录映射到 TOMCAT 中的 URL
我指的是这个问题: 将 Web 应用程序外部的目录映射到 URL在 TOMCAT 中,
<Context path="/images" docBase="/usr/images/" />
我想知道如何以最安全的方式实现这一点。所以我的问题是:
- 将上传文件夹放在哪里,为
- 文件夹和文件提供哪些文件权限以及谁应该是所有者
- 如何确保文件只能通过 tomcat 访问而不能直接由用户访问
I am referring to this question:
Mapping a directory outside the web-app to URL in TOMCAT
<Context path="/images" docBase="/usr/images/" />
I wonder how to achive this in the most secure way. So my questions are:
- where to put the folder for uploads
- which file permissions to give the folder and the files and who should be the owner
- how to make sure files can only be accessed via tomcat and not directly by users
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
/var/tomcat
...tomcat:tomcat
/var/tomcat
...tomcat:tomcat