The following forum(s) have migrated to Microsoft Q&A (Preview): Azure Virtual Machines!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
Unable to access HTTP website hosted on Azure VM with IIS RRS feed

  • Question

  • I have tried going over the other forum posts on this issue but unfortunately I'm still not unblocked.

    I set up the VM with Server 2012 R2, and set up roles for Application Server and IIS.  I have IIS running and can reach the default webpage with http://localhost:80 from the machine.  But when I try to use the http address for my VM (even from the VM itself) it times out and says the page cannot be reached in IE.

    I made sure that the Endpoint for HTTP port 80 TCP is set up for my VM as outlined in this post and this post, but it is still not working.

    I then made sure to check the firewall as other posts suggested.  I made sure that the default rules "World Wide Web Services (Http Traffic-In) and "World Wide Web Services (HTTPS Traffic-In) are both set to on and allowed.

    But I'm still having trouble getting the default page to load.  Any other ideas?

    Friday, April 4, 2014 3:41 AM

Answers

  • So as luck would have it I just figured this out after posting :S

    In one of the original posts I read someone mentioned that their issue was fixed after they selected "Enable Direct Server Return".  So when I set up my endpoint initially I did that.  Deleting the endpoint and then re-using the default HTTP setting from the drop down WITHOUT checking the Direct Server Return option seems to have fixed the issue.

    Hope this helps someone else.

    Friday, April 4, 2014 3:50 AM

All replies

  • So as luck would have it I just figured this out after posting :S

    In one of the original posts I read someone mentioned that their issue was fixed after they selected "Enable Direct Server Return".  So when I set up my endpoint initially I did that.  Deleting the endpoint and then re-using the default HTTP setting from the drop down WITHOUT checking the Direct Server Return option seems to have fixed the issue.

    Hope this helps someone else.

    Friday, April 4, 2014 3:50 AM
  • Hi,

    Good to hear that and thanks for sharing.

    Have a good day!

    Best regards,

    Susie

    Friday, April 4, 2014 7:58 AM
  • You can also create VM's in Azure that already have IIS and Web Deploy enabled on them. Check out this MSDN Article for more info - http://msdn.microsoft.com/library/azure/dn642480.aspx

    Very straightforward to do (you just need the latest version of Azure SDK or Visual Studio 2013 Update 2). You can make a VM like this during your project creation for Web Apps or using the PS Scripts mentioned in the MSDN article


    R. Matt Sampson

    Friday, April 4, 2014 3:46 PM