Can t access the Nginx web page connection refused

+1 vote

Hi Guys,

I have launched the Nginx image successfully with binding port 82 of the host in docker using the below command.

 $ docker run -it -d -p 82:80

I have also checked inbound rules for all traffic all protocols and ports. But can't access the Nginx page with ip_address:82. How can I solve this error?

Aug 26, 2020 in AWS by akhtar
• 38,210 points

1 answer to this question.

0 votes


I think the problem is you did not create a rule for port no. 82. You have used the concept of port forwarding in your docker container. But Nginx by default works on port 80. So you need to create a rule for port 80 in your ec2 instance.

answered Aug 26, 2020 by MD
• 95,300 points

Related Questions In AWS

0 votes
1 answer

AWS sigin loop - can't access the portal

I contacted AWS regarding the issue and ...READ MORE

answered Aug 7, 2018 in AWS by Priyaj
• 58,140 points
0 votes
1 answer

Cant see the AWS public IP Adress is a CIDR Range. falls between the range. Starting IP: ...READ MORE

answered Jun 1, 2018 in AWS by Cloud gunner
• 4,650 points
0 votes
1 answer

Explain how the buffer is used in Amazon web services?

In order to make system more efficient ...READ MORE

answered Jul 31, 2018 in AWS by Priyaj
• 58,140 points
0 votes
1 answer