我有網站local.Mywebsite.com
在我的本地IIS 7.5.The網站託管在.NET 4.0版和IIS應用程序池是綜合管道模式運行。它工作得很好。
我能夠瀏覽local.Mywebsite.com/default.aspx爲local.Mywebsite.com這意味着IIS服務的默認文檔爲我配置。
的變化:
我有一個要求,包括其他應用程序美孚我的網站作爲虛擬directory.I補充說,和我能夠瀏覽並使用具有完整路徑一樣地方。 Mywebsite.com/Foo/Mypage.aspx。
然後我爲我的Foo虛擬目錄配置了默認文檔。
我的問題:
我嘗試瀏覽local.Mywebsite.com/Foo/
我得到了一個錯誤:
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies)
could have been removed, had its name changed, or is temporarily unavailable.
Please review the following URL and make sure that it is spelled correctly.
現在IIS是不是默認服務我的文檔Foo虛擬目錄。
但是仍然能夠瀏覽local.Mywebsite.com,IIS在此處默認提供文檔。
任何人有任何想法或任何建議,高度讚賞。
更新:
當我中的Default.aspx,則IIS提供的默認文檔精緻漂亮重命名文件Mypage.aspx。我們能夠通過瀏覽local.Mywebsite.com/Foo/來查看default.aspx頁面。
我的Web配置:
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Mypage.aspx" />
</files>
</defaultDocument>
我已經檢查這一個也http://stackoverflow.com/questions/6948669/iis-7-not-serving-default-document,但這是'古典管道模式' –
你可以發佈相關網頁.config部分爲'/ Foo'? – Kev
此外,您還使用了兩個不正確的'default.aspx'拼寫:** deafualt.aspx **和** defualt.aspx **,這些只是您的問題中的拼寫錯誤嗎? – Kev