Issue
I have deployed my web application via AWS EC2. I have made inbound rules as below.
I can now access through myIP:8080
but I get an error with myIP
or myIP:80
. The error message I get is: This site can’t be reached. refused to connect. Try: Checking the connection. Checking the proxy and the firewall. ERR_CONNECTION_REFUSED
What am I doing wrong in here?
Solution
I have managed to resolve the issue by port forwarding with the following command:
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
Answered By - owlikns Answer Checked By - Clifford M. (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.