How to set default Web page for a website on Microsoft Windows Azure?

0 votes

I have set up a website on azurewebsites.net. When I go to the url http:/website.azurewebsites.net/  - it doesn't load. But when I go to http:/website.azurewebsites.net/home.aspx - it loads.

I want that if a user goes to http:/website.azurewebsites.net/ - it loads with the home.aspx content or gets redirected to http:/website.azurewebsites.net/home.aspx

The following code doesn't work

 <system.webServer>
   <defaultDocument>
     <files>
       <clear />
       <add value="Default.aspx" />
     </files>
   </defaultDocument>
  </system.webServer>

Can anyone help??

Mar 27 in Azure by sabby
• 4,050 points
15 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

This blog post should resolve your issue: 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

Look at this section:

<defaultDocument> 
          <files>                           
             <clear/>                           
             <add value="Default.aspx"/>                      
          </files>
</defaultDocument>

Or you could Type to url map it. That should work.

answered Mar 27 by Prerna
• 1,940 points

Related Questions In Azure

0 votes
1 answer

How to deploy a simple static micro site on Microsoft Azure?

Try steps told in this tutorial: https://www.microsoft.com/middleeast/azureboxes/cloud-hosting-for-a-static-website.aspx This is not ...READ MORE

answered Sep 3, 2018 in Azure by null_void
• 3,220 points
19 views
0 votes
1 answer

How to upload a file on to Azure Blob storage without writing a code?

You can find the below tools useful ...READ MORE

answered Apr 13, 2018 in Azure by club_seesharp
• 3,450 points
70 views
0 votes
1 answer

Is there a way to get ERROR details on Azure website?

You have two options: First, you can turn ...READ MORE

answered May 25, 2018 in Azure by club_seesharp
• 3,450 points
46 views
+1 vote
4 answers

How do Connect to Azure website via FTP?

First set up your FTP credentials are ...READ MORE

answered Oct 23, 2018 in Azure by abc
146 views
0 votes
1 answer
0 votes
1 answer

Want to upload a blob file with huge size to azure in as little time as possible.

Microsoft Azure Storage Explorer is one of the ...READ MORE

answered Mar 27 in Azure by Prerna
• 1,940 points
16 views
0 votes
2 answers

What is the job role of an Azure Developer?

The responsibility of an Azure Developer are ...READ MORE

answered Feb 7 in Career Counselling by Esha
31 views
0 votes
3 answers
0 votes
1 answer

How to install Windows Azure Storage Emulator?

There may be an issue with the ...READ MORE

answered Mar 6 in Azure by Prerna
• 1,940 points
14 views
0 votes
2 answers

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.