如何保护部署在tomcat服务器中的war文件? [英] How to secure the war file deployed in tomcat server?

查看:92
本文介绍了如何保护部署在tomcat服务器中的war文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Web应用程序,并将该应用程序作为.war文件托管在tomcat服务器中.它位于tomcat服务器的webapps文件夹中.但是我需要保护托管文件.在webapps文件夹中,我找到了.war文件并提取了应用程序的文件夹,我该如何生产这些文件.有谁能帮助我解决这个问题?

I am developing web application and i host the application as a .war file in tomcat server. it was located in webapps folder of tomcat server.but i need to secure my hosted file.in webapps folder i found .war file and extracted folder of my application how can i product those files.Can any one help me to solve this issue ?

预先感谢

推荐答案

如果您的用户"具有访问服务器的权限,那么保护.war文件的作用就很小.

If your 'users' have access to your server, then there's very little you can do to protect the .war file.

如果您确定运行tomcat的用户具有对webapps目录的读取权限,则可以删除读取权限,以便其他登录的用户没有读取权限,但是您必须仔细检查以确保确保您说对了.

If you make sure that the user who runs tomcat has read access to the webapps directory, then you could maybe remove read permissions so that other logged in users do not have read access, but you'd have to check carefully to make sure you get this right.

为什么要保护这些文件?如果用户可以登录到服务器,那么在保护.war文件的内容方面我没有多大意义.

Why do you want to protect these files? If the users can login to the server, then I don't see much point in protecting the contents of the .war file.

这篇关于如何保护部署在tomcat服务器中的war文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆