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



enter image description here



Outbound Settings



enter image description here



But, it's still not working. What am I missing?










share|improve this question






















  • 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















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



enter image description here



Outbound Settings



enter image description here



But, it's still not working. What am I missing?










share|improve this question






















  • 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













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



enter image description here



Outbound Settings



enter image description here



But, it's still not working. What am I missing?










share|improve this question













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



enter image description here



Outbound Settings



enter image description here



But, it's still not working. What am I missing?







amazon-web-services nginx amazon-ec2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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












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.






share|improve this answer





















  • - 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











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',
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
});


}
});














 

draft saved


draft discarded


















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








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.






share|improve this answer





















  • - 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















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.






share|improve this answer





















  • - 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













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.






share|improve this answer













  • 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.







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • - 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


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith