对于网站上的微软Windows Azure的设置默认网页 [英] Set default webpage for website on Microsoft Windows Azure
问题描述
我最近成立了azurewebsites.net一个网站。
I recently set up a website on azurewebsites.net.
但是,当我去到http:/website.azurewebsites.net/
它不会加载。
But when I go to the url http:/website.azurewebsites.net/ it doesn't load.
但是,当我去到http:/website.azurewebsites.net/home.aspx它加载
But when I go to http:/website.azurewebsites.net/home.aspx it loads.
我想的是,
如果用户进入到http:/website.azurewebsites.net/它与home.aspx内容加载或重定向到http:/website.azurewebsites.net/home.aspx
What I want is that if a user goes to http:/website.azurewebsites.net/ it loads with the home.aspx content or get redirected to http:/website.azurewebsites.net/home.aspx
这不工作
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="Default.aspx" />
</files>
</defaultDocument>
</system.webServer>
对不起,这里的实际链接 http://rathgarfantasyhockey.azurewebsites.net/default.aspx 它工作得很好,但是当你去 http://rathgarfantasyhockey.azurewebsites.net HTTP错误404,资源无法找到
显示。
Sorry here's the actual link http://rathgarfantasyhockey.azurewebsites.net/default.aspx which works fine, but when you go to http://rathgarfantasyhockey.azurewebsites.net HTTP error 404, The resource cannot be found
is displayed.
谁能帮助??
推荐答案
根据这一博客帖子:<一href=\"http://blogs.msdn.com/b/cesardelatorre/archive/2010/07/22/how-to-set-a-default-page-to-a-windows-azure-web-role-app-silverlight-asp-net-etc.aspx\">http://blogs.msdn.com/b/cesardelatorre/archive/2010/07/22/how-to-set-a-default-page-to-a-windows-azure-web-role-app-silverlight-asp-net-etc.aspx
<defaultDocument>
<files>
<clear/>
<add value="Default.aspx"/>
</files>
</defaultDocument>
应该工作。或者你可以输入到地址映射。要做到这一点检查<一href=\"http://msdn.microsoft.com/en-us/library/cc668201.aspx\">http://msdn.microsoft.com/en-us/library/cc668201.aspx
这篇关于对于网站上的微软Windows Azure的设置默认网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!