使用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目录在哪里
发布评论