ec2 not accepting inbound traffic
up vote
0
down vote
favorite
So, I've gone through multiple SO threads, but I'm unable to do it.
I launched an ec2 instance and installed ubuntu18.04 to it. I installed nginx on top of it.
Now I'm trying to browse my server IP via browser, but it shows it can't be reached
. I tried wget localhost
on shell and it downloads a file with content If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
, which means nginx is working fine.
Now, I edited my Security group
config associated with the instance as follow:-
Inbound Settings
Outbound Settings
But, it's still not working. What am I missing?
amazon-web-services nginx amazon-ec2
add a comment |
up vote
0
down vote
favorite
So, I've gone through multiple SO threads, but I'm unable to do it.
I launched an ec2 instance and installed ubuntu18.04 to it. I installed nginx on top of it.
Now I'm trying to browse my server IP via browser, but it shows it can't be reached
. I tried wget localhost
on shell and it downloads a file with content If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
, which means nginx is working fine.
Now, I edited my Security group
config associated with the instance as follow:-
Inbound Settings
Outbound Settings
But, it's still not working. What am I missing?
amazon-web-services nginx amazon-ec2
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 at 12:38
cURL gives you tons of information and isn't restricted by quite a lot of things that actually cause problems with browsers.
– AlexK
Nov 19 at 12:40
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So, I've gone through multiple SO threads, but I'm unable to do it.
I launched an ec2 instance and installed ubuntu18.04 to it. I installed nginx on top of it.
Now I'm trying to browse my server IP via browser, but it shows it can't be reached
. I tried wget localhost
on shell and it downloads a file with content If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
, which means nginx is working fine.
Now, I edited my Security group
config associated with the instance as follow:-
Inbound Settings
Outbound Settings
But, it's still not working. What am I missing?
amazon-web-services nginx amazon-ec2
So, I've gone through multiple SO threads, but I'm unable to do it.
I launched an ec2 instance and installed ubuntu18.04 to it. I installed nginx on top of it.
Now I'm trying to browse my server IP via browser, but it shows it can't be reached
. I tried wget localhost
on shell and it downloads a file with content If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
, which means nginx is working fine.
Now, I edited my Security group
config associated with the instance as follow:-
Inbound Settings
Outbound Settings
But, it's still not working. What am I missing?
amazon-web-services nginx amazon-ec2
amazon-web-services nginx amazon-ec2
asked Nov 19 at 12:04
PythonEnthusiast
4,0052064142
4,0052064142
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 at 12:38
cURL gives you tons of information and isn't restricted by quite a lot of things that actually cause problems with browsers.
– AlexK
Nov 19 at 12:40
add a comment |
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 at 12:38
cURL gives you tons of information and isn't restricted by quite a lot of things that actually cause problems with browsers.
– AlexK
Nov 19 at 12:40
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 at 12:37
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 at 12:38
What difference would it make?
– PythonEnthusiast
Nov 19 at 12:38
cURL gives you tons of information and isn't restricted by quite a lot of things that actually cause problems with browsers.
– AlexK
Nov 19 at 12:40
cURL gives you tons of information and isn't restricted by quite a lot of things that actually cause problems with browsers.
– AlexK
Nov 19 at 12:40
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
- Can you please check internal firewall on your instance, it is enabled or not. If not try to disable it and see.
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
- Secondly, have you installed any webserver on EC2, otherwise it may not be able to find anything on localhost. There should be a webserver to listen to request on port 80.
- Also see if you have started your webserver or not. I doubt either you do have any webserver installed or the web server is not started.
– prasoon
Nov 19 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
- Can you please check internal firewall on your instance, it is enabled or not. If not try to disable it and see.
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
- Secondly, have you installed any webserver on EC2, otherwise it may not be able to find anything on localhost. There should be a webserver to listen to request on port 80.
- Also see if you have started your webserver or not. I doubt either you do have any webserver installed or the web server is not started.
– prasoon
Nov 19 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
2 days ago
add a comment |
up vote
0
down vote
- Can you please check internal firewall on your instance, it is enabled or not. If not try to disable it and see.
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
- Secondly, have you installed any webserver on EC2, otherwise it may not be able to find anything on localhost. There should be a webserver to listen to request on port 80.
- Also see if you have started your webserver or not. I doubt either you do have any webserver installed or the web server is not started.
– prasoon
Nov 19 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
2 days ago
add a comment |
up vote
0
down vote
up vote
0
down vote
- Can you please check internal firewall on your instance, it is enabled or not. If not try to disable it and see.
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
- Secondly, have you installed any webserver on EC2, otherwise it may not be able to find anything on localhost. There should be a webserver to listen to request on port 80.
- Can you please check internal firewall on your instance, it is enabled or not. If not try to disable it and see.
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
- Secondly, have you installed any webserver on EC2, otherwise it may not be able to find anything on localhost. There should be a webserver to listen to request on port 80.
answered Nov 19 at 12:14
prasoon
166114
166114
- Also see if you have started your webserver or not. I doubt either you do have any webserver installed or the web server is not started.
– prasoon
Nov 19 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
2 days ago
add a comment |
- Also see if you have started your webserver or not. I doubt either you do have any webserver installed or the web server is not started.
– prasoon
Nov 19 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
2 days ago
- Also see if you have started your webserver or not. I doubt either you do have any webserver installed or the web server is not started.
– prasoon
Nov 19 at 12:14
- Also see if you have started your webserver or not. I doubt either you do have any webserver installed or the web server is not started.
– prasoon
Nov 19 at 12:14
Firewall is inactive.
sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 at 12:32
Firewall is inactive.
sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 at 12:33
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
2 days ago
Noobish. I was using the private IP.
– PythonEnthusiast
2 days ago
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53374263%2fec2-not-accepting-inbound-traffic%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 at 12:38
cURL gives you tons of information and isn't restricted by quite a lot of things that actually cause problems with browsers.
– AlexK
Nov 19 at 12:40