Web 开发中此根目录的正确术语是什么?
我正在为 Web 应用程序编写一些文档,我想确保在描述此根目录时使用正确的术语。
我的 Web 应用程序可以配置为在任何目录中使用。例如,您可以将其安装在 http://site.com/
,也可以将其安装在 http://site.com/mydir/
,或者您可以全部安装http://site.com/dira/dirb/
。
在每种情况下,根目录都是 /
、/mydir/
和 /dira/dirb/
。我的问题是,是否有一个术语来描述这种绝对根目录概念的确切类型?文档根目录?应用程序根?网络根?或者这是一种特定于我的应用程序的特殊类型的根,我应该为其发明一个名称?
I am writing some documentation for a web application and I want to make sure I am using the correct terminology in describing this root directory.
My web application can be configured to be used in any directory. For example you could install it at http://site.com/
, or you could install it at http://site.com/mydir/
, or you could install it all http://site.com/dira/dirb/
.
In each of those cases the root directory would be /
, /mydir/
and /dira/dirb/
. My question is, is there a term for this exact type of absolute root directory concept? Document root? application root? web root? Or is this a special type of root that is specific to my application that I should invent a name for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我将其称为[web]应用程序根——特定应用程序的根。
它是应用程序的根,但不一定是网站(站点)的根,具体取决于它的定义方式。然而,在不同的环境中,站点和网络具有非常特定的含义。例如,在 SharePoint 中,“Web 根”相对路径可能是“/mysite/myweb”。 “文档根目录”听起来像是查找文档的地方……而不是应用程序。
重要的是用户知道其含义 - 为此,我建议明确区分“网络”/“文档”和“应用程序”的关注点。
快乐编码。
I refer to it as a [web]application root -- the root of that particular application.
It is the root of the application, but not necessarily that of the web(site), depending on how that is defined. In a different environment, however, a Site and a Web have very specific meanings. In SharePoint, for instance, a "Web root" relative path might be "/mysite/myweb". A "document root" sounds like a place to find documents ... not an application.
The important thing is that the users knows what is meant -- and to this effect I'd recommend clearly separating the concerns of "web"/"document" and "application".
Happy coding.
我想说的是 Web 应用程序根,这是 MSDN 上使用的术语web.config 所在的目录。
网站根目录始终为“/”,但在 IIS 中,任何子目录都可以配置为自己的应用程序,具有自己的 web.config,然后将该目录称为 Web 应用程序根目录是合乎逻辑的。
如果您的应用程序没有自己的 web.config,我建议使用“安装根目录”或类似的内容以避免混淆。
I would say web application root, which is the term used on MSDN for the directory where web.config resides.
The web site root is always '/', but in IIS any subdirectory can be configured as an own application, with its own web.config and it is then logical to call that directory for the web application root.
If your application does not have an own web.config I would suggest using "install root" or something like that to avoid confusion.
/
通常称为 Web 根目录,应用程序根目录可以视为如下所示:/application-directory
。不过,您可以将这两个示例称为root
,因为它们肯定是某些内容的根(在本例中为您的 Web 应用程序和/或服务器)。/
is commonly referred to as web root, and application root can be seen as something like the following:/application-directory
. You can however call the both the examplesroot
, as they surely are the root of something (in this case, your web application and/or server).