IIS Express 7.5 wwwroot目录在哪里

编程入门 行业动态 更新时间:2024-10-08 12:42:03
本文介绍了IIS Express 7.5 wwwroot目录在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

使用Windows 7我已安装IIS Express 7.5,但我无法找到系统中 wwwroot 目录的位置!我的C盘上也没有 inetpub 文件夹。 你能告诉我在哪里可以运行像hello.aspx这样的文件吗?

Using Windows 7 I have installed the IIS Express 7.5 but I cant find where is the wwwroot directory on my system! There is no "inetpub" folder on my C drive as well. Can you please let me know where I can put a file like hello.aspx file to be run?

谢谢

推荐答案

通过第一手经验以及其他SO答案 ,通常IISExpress在以下位置保存一个包含自己的数据文件的目录: C:\ Users \< username> \ Files \ IISExpress 。

By first-hand experience and also by this other SO answer, usually IISExpress holds a directory with its own data files at: C:\Users\<username>\Documents\IISExpress.

在那里你可以找到每个网站日志文件的默认目录( Logs \ 和 TraceLogFiles \ )特别是你可以在文件 config \ applicationhost.config 中找到所有网站配置。对于每个创建的网站,该网站都有一个< sites> 部分,其中包含< site> 节点。

There you can find the default directories for each web site log files (Logs\ and TraceLogFiles\) and especially you can find all web sites configurations in file config\applicationhost.config. That one has a <sites> section with a <site> node for each website created.

对于每个网站,其< virtualDirectory> 节点指定 physicalPath 属性:

For each website, its <virtualDirectory> node specifies actual root location in physicalPath attribute:

<site name="YourWebSiteName" id="12345"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="D:\Physical\path\to\your\website\root"/> </application> ... </site>

更多推荐

IIS Express 7.5 wwwroot目录在哪里

本文发布于:2023-11-12 14:35:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581758.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目录   Express   IIS   wwwroot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!