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,180 points
1,016 views

1 answer to this question.

0 votes

Hi@akhtar,

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,220 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,120 points
321 views
0 votes
1 answer

Cant see the AWS public IP Adress

35.160.0.0/13 is a CIDR Range. 35.165.39.114 falls between the range. Starting IP: ...READ MORE

answered Jun 1, 2018 in AWS by Cloud gunner
• 4,650 points
131 views
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,120 points
2,584 views
0 votes
1 answer