Could not deploy React App through IIS

Ravi Srinivasan 1 Reputation point
2021-07-28T15:02:04.17+00:00

Hi,
We are trying to deploy a React App through IIS. We have added the bindings to the IIS Server to allow HTTP and HTTPS requests through Ports 80 and 443 respectively. This is shown in Picture 1. We also added Firewall inbound rules to allow Traffic through these ports.

However, the site is not loading. The Connection fails and we get the Screen shown in Pic 2. Appreciate any help.

118725-iis-bindings.png

Internet Information Services
Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
359 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,531 Reputation points Microsoft Vendor
    2021-07-29T02:41:32.73+00:00

    Hi @Ravi Srinivasan

    You need to setup hostname to website in iis, try the following methods to solve this issue:

    1. Right click Notepad and select run as administrator.
    2. In Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
    3. Add the following entry to the file: Local IP Address www.virtualreviewassist
    4. Click File > Save to save your changes.

    More information about how setup hostname to website can refer to this link: set custom domain name for localhost website iis.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.