Can't access EC2 WebApp from the web - iis

I have a Windows WebApp hosted on IIS on an EC2.
I can access it using the public IP but this IP change when the instance restart, so I associated an Elastic IP but the issue is I can't access the app using this Elastic IP : 404 - File or directory not found.
I checked the Inbound rules on the related security group to authorize 0.0.0.0/0
Any ideas?

The issue is the Bindings in IIS : IIS -> Sites -> Your Site -> Right click -> Edit Bindings and add your IP

Related

Deploy website on azure virtual machine and access on internet

I want to deploy a website on azure IIS by using server 2016(Azure VM), and want to access it anywhere on the internet. How can I do this?
Which ip address I've to use for this purpose?
There are several steps to acheive this deployment on IIS.
1.Install IIS on azure VM.
https://devblogs.microsoft.com/premier-developer/set-up-iis-on-windows-virtual-machine/
2.Create a website for publish
Please remember to grant permission for authenticated user like IUSR and application pool identity
https://support.microsoft.com/en-gb/help/323972/how-to-set-up-your-first-iis-web-site
3.Set Azure VM firewall to allow your port like 80
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal
4.Publish your website.
You could achieve this via simple copy action in Remote desktop or VS web deployment
Just ensure your website can be accessed via telnet or tcping.exe. I remember ping is blocked by Azure VM.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/publish-web-app-from-visual-studio
5.Try to access from both internal IP address and external firewall IP address.
If you could access from internal IP which means your IIS site has been built correctly.
If the website can be access from external. Then you have finished the publish.
6.If you want to access website from public domain.
Then you have to purchase domain name from public domain provider. Then bind your domain to your public IP address on their portal. As long as the website can be accessed from external. It would work with domain name.

Azure VM IIS unreachable from public IP / cloudapp.net domain

I just setup a Windows Server VM on my Azure space, but for some reason the IIS that is configured on it isn't available publicly...
I can open the IIS welcome page trough localhost on the server, but no trough visiting the external IP or the cloudapp.net domain.
Something to note is that I actually CAN reach the server trough MSTSC with the external IP adress...
I tried:
Shutting off the Windows Firewall
Opened endpoints on the non-classic management Azure system
I binded the ip's to the cloudapp host
Checked the online Azure documentation
So I resolved it... Don't know if it's supposed to be that way, but be sure that in Azure your "Source port" is defined to be * and not 80, or other.
That will absolutely not work if you're not defining "*".
Screenshot of Azure here

Azure VM Webhosting - IIS public access

I am hosting a website on my Azure classic VM, 2012 Server R2. The application is MVC5 installed in wwwroot directory, runs on local host. The site binding type is Http, Port 80, and IP address is all unassigned.
To setup the public access I did the following:
Added endpoint TCP 80 private and public (Azure Portal)
Added inbound rule (firewall) Http port 80, the World Wide Web Services (HTTPS Traffic-In) was already open.
When I try to access the site http://xxxx.cloudapp.net, I get this error: can't reach this page!
Have I missed any step?
Could it be that the site name is configured wrongly in IIS? Is it the default website?
I had to delete the VM and install a new one; however this time I did setup the endpoints before installing the VM, all works now.

How can my site become public to the internet when i have done this actions:

Created virtual machine in Azure.
Added HTTP endpoint on public port 80, private port 80
Installing from Terminal into Azure Virtual Machine: Ubuntu 14.0.4, Apache, phpMyAdmin and my Joomla Site.
I can acces my site with IpAdress/myJoomlaSite but i want to show my site to internet like www.myJoomlasite.com.
What should I do?
You only have to (in a nutshell):
Create the domain and a CNAME for the URI we provide to you at the portal (websitename.azurewebsites.net)
Add the domain to the portal so Azure App Service knows what to do with it.
More information and detailed steps you can find on Configure a custom domain name in Azure App Service

Mapping DNS name to my website which is hosted on azure Virtual machine

How do i map my dns(www.mydomain.com) to my website which is hosted on my virtual machine.
Things i already done.
Created virtual machine in Azure.
Added endpoint on public port 80, private port 80
Website hosted on IIS, and can access via localhost (inside virtual machine) and even via http:// ipaddress/sitename/ (outside of virtual machine)
I already have a DNS name in godaddy.
Also if i have more than one website hosted on my IIS, how do i map to corresponding domains.
Now you need to create DNS record for your VM.
See how to do that at http://support.godaddy.com/help/article/680/managing-dns-for-your-domain-names
You have got two alternatives here:
Create A record (DNS name to IP, e.g. subdomain.example.com -> your VM VIP).
Public Virtual IP (VIP) adress can be found in the VM configuration on manage.windowsazure.com, on the right pane.
Create CNAME record (DNS name to another DNS name, e.g. subdomain.example.com -> VM-Name.cloudapp.net)
DNS Name of your VM can also be found in the VM configuration, on the same right pane.
After that, set appropriate Host Name (e.g. subdomain.example.com) in IIS site binding so that you can reuse the same port (80) for other sites, binding different Host Names for them.
If you need your site to response for localhost or other DNS name, just add it as another binding (see screenshot).

Resources