ec2 not accepting inbound traffic
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 |
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 '18 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 '18 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 '18 at 12:40
add a comment |
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 '18 at 12:04
PythonEnthusiastPythonEnthusiast
4,1552165149
4,1552165149
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 '18 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 '18 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 '18 at 12:40
add a comment |
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 '18 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 '18 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 '18 at 12:40
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 '18 at 12:37
Have you tried simply querying it with cURL from the outside?
– AlexK
Nov 19 '18 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 '18 at 12:38
What difference would it make?
– PythonEnthusiast
Nov 19 '18 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 '18 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 '18 at 12:40
add a comment |
1 Answer
1
active
oldest
votes
- 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 '18 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 '18 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 '18 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
Nov 19 '18 at 19:05
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
- 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 '18 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 '18 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 '18 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
Nov 19 '18 at 19:05
add a comment |
- 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 '18 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 '18 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 '18 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
Nov 19 '18 at 19:05
add a comment |
- 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 '18 at 12:14
prasoonprasoon
141114
141114
- 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 '18 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 '18 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 '18 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
Nov 19 '18 at 19:05
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 '18 at 12:14
Firewall is inactive.sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 '18 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 '18 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
Nov 19 '18 at 19:05
- 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 '18 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 '18 at 12:14
Firewall is inactive.
sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 '18 at 12:32
Firewall is inactive.
sudo ufw status . Status: inactive
– PythonEnthusiast
Nov 19 '18 at 12:32
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 '18 at 12:33
Isn't nginx a webserver in itself?
– PythonEnthusiast
Nov 19 '18 at 12:33
Noobish. I was using the private IP.
– PythonEnthusiast
Nov 19 '18 at 19:05
Noobish. I was using the private IP.
– PythonEnthusiast
Nov 19 '18 at 19:05
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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 '18 at 12:37
What difference would it make?
– PythonEnthusiast
Nov 19 '18 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 '18 at 12:40