ASP.NET:位置,用于存储应几个Web的应用程序之间共享文件 [英] ASP.NET: Location for storing files that should be shared between several web-applications

查看:97
本文介绍了ASP.NET:位置,用于存储应几个Web的应用程序之间共享文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个网络应用程序。一个是向外,面向应用,这将是从Internet访问。另一种是管理第一的应用程序,这将只能从内部网访问。

I have two web-applications. One is an outwards-facing application that will be accessible from the internet. The other is an application to manage the first, that will only be accessible from the intranet.

他们保持他们的数据在文件系统中的文件(我觉得一个数据库将是矫枉过正这些应用程序)。

They keep their data in files on the filesystem (I think a database would be overkill for these applications).

管理应用程序应该能够写一些文件的向外面向应用程序可以读取(即用于提供从互联网请求的响应数据文件)和向外面向应用程序应该能够编写文件管理可以读取(日志文件)。

The management-application should be able to write some files that the outwards-facing application can read (data-files that are used to supply responses to requests from the internet) and the outwards-facing application should be able to write a file that the management can read (log-file).

我的问题是:什么是存储这些文件的最好的地方。

My question is: what is the best place to store these files?


  • 应用数据/ [公司名称] / [产品名称]?

  • 的网络应用之一下的一个APP_DATA
  • 别的地方?

  • Application Data/[Company Name]/[Product Name]?
  • An APP_DATA under one of the web-applications?
  • Somewhere else?

一些要考虑的因素是:做解决方案需要哪些额外的权限?在Web的应用程序可以无需知道其他应用程序已安装在发现的位置?

Some factors to consider are: What extra permissions do the solution need? Can the web-applications discover the location without needing to know where the other application has been installed?

在此先感谢您的任何建议!

Thanks in advance for any suggestions!

推荐答案

我知道你说的数据库将是矫枉过正,但有一方可能给内部系统的接入双面应用程序,会更安全(虽然不完全是安全的),如果资源被存放在一个数据库中。它只是给出了一个额外的一层。我认为网民应给予许可的主机文件系统上的最低限度(通过Web层,如网络服务或没有)。

I know you said a database would be overkill, but a two-sided app with one side potentially giving access to internal systems, would be much more secure (though not entirely secure) if resources were stored in a DB. It just gives an extra layer. I think Internet users should be given the bare minimum of permission on the host file-system (via a web layer such as NETWORK SERVICE or not).

否则,为什么不是沙箱的路径,在单独的物理设备上(可能如果需要的话,断开如可疑活动。)如USB硬盘?

Otherwise, why not a "sandbox" path, on a physically separate device (that may be disconnected if needed, eg. suspicious activity) such as a USB hard disk?

这篇关于ASP.NET:位置,用于存储应几个Web的应用程序之间共享文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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