Can't get HTTP connection to Amazon Web Services EC2 Windows Server 2012 Instance
I have an Amazon Web Services EC2 instance with a Windows Server 2012 AMI on it. I have installed XAMPP on it, and have started the apache server from the XAMPP Control Panel. It starts successfully.
Also in the AWS Dashboard, I have added rules to the relevant Security Group for the Instance, as detailed in linked image (I don't have enough reputation yet to post an image):
I have replaced the actual source ip setting for the inbound traffic with xxx.xxx.xxx.xxx/32
in this image, but it is set to the ip from which I am trying to establish the http connection, so I am not sure why I am unable to establish an http connection? I have also tried allowing inbound HTTP traffic via port 80 from all sources, by specifying ip 0.0.0.0/0
, same problem.
I am trying to establish the http connection via my browser, simply by using the AWS instance public dns/ip, e.g.
http://myAWSinstancedns.compute.amazonaws.com
or
http://myAWSinstancedns.compute.amazonaws.com/xampp/splash.php
When try the same thing from within the AWS instance, using localhost, it works, but not from outside.
Anyone any idea?
networking apache-http-server http xampp amazon-web-services
add a comment |
I have an Amazon Web Services EC2 instance with a Windows Server 2012 AMI on it. I have installed XAMPP on it, and have started the apache server from the XAMPP Control Panel. It starts successfully.
Also in the AWS Dashboard, I have added rules to the relevant Security Group for the Instance, as detailed in linked image (I don't have enough reputation yet to post an image):
I have replaced the actual source ip setting for the inbound traffic with xxx.xxx.xxx.xxx/32
in this image, but it is set to the ip from which I am trying to establish the http connection, so I am not sure why I am unable to establish an http connection? I have also tried allowing inbound HTTP traffic via port 80 from all sources, by specifying ip 0.0.0.0/0
, same problem.
I am trying to establish the http connection via my browser, simply by using the AWS instance public dns/ip, e.g.
http://myAWSinstancedns.compute.amazonaws.com
or
http://myAWSinstancedns.compute.amazonaws.com/xampp/splash.php
When try the same thing from within the AWS instance, using localhost, it works, but not from outside.
Anyone any idea?
networking apache-http-server http xampp amazon-web-services
add a comment |
I have an Amazon Web Services EC2 instance with a Windows Server 2012 AMI on it. I have installed XAMPP on it, and have started the apache server from the XAMPP Control Panel. It starts successfully.
Also in the AWS Dashboard, I have added rules to the relevant Security Group for the Instance, as detailed in linked image (I don't have enough reputation yet to post an image):
I have replaced the actual source ip setting for the inbound traffic with xxx.xxx.xxx.xxx/32
in this image, but it is set to the ip from which I am trying to establish the http connection, so I am not sure why I am unable to establish an http connection? I have also tried allowing inbound HTTP traffic via port 80 from all sources, by specifying ip 0.0.0.0/0
, same problem.
I am trying to establish the http connection via my browser, simply by using the AWS instance public dns/ip, e.g.
http://myAWSinstancedns.compute.amazonaws.com
or
http://myAWSinstancedns.compute.amazonaws.com/xampp/splash.php
When try the same thing from within the AWS instance, using localhost, it works, but not from outside.
Anyone any idea?
networking apache-http-server http xampp amazon-web-services
I have an Amazon Web Services EC2 instance with a Windows Server 2012 AMI on it. I have installed XAMPP on it, and have started the apache server from the XAMPP Control Panel. It starts successfully.
Also in the AWS Dashboard, I have added rules to the relevant Security Group for the Instance, as detailed in linked image (I don't have enough reputation yet to post an image):
I have replaced the actual source ip setting for the inbound traffic with xxx.xxx.xxx.xxx/32
in this image, but it is set to the ip from which I am trying to establish the http connection, so I am not sure why I am unable to establish an http connection? I have also tried allowing inbound HTTP traffic via port 80 from all sources, by specifying ip 0.0.0.0/0
, same problem.
I am trying to establish the http connection via my browser, simply by using the AWS instance public dns/ip, e.g.
http://myAWSinstancedns.compute.amazonaws.com
or
http://myAWSinstancedns.compute.amazonaws.com/xampp/splash.php
When try the same thing from within the AWS instance, using localhost, it works, but not from outside.
Anyone any idea?
networking apache-http-server http xampp amazon-web-services
networking apache-http-server http xampp amazon-web-services
edited Jun 6 '16 at 5:45
pun
4,84581853
4,84581853
asked Sep 13 '14 at 1:52
user2606742user2606742
581415
581415
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Sounds like Apache may be configured to only accept connections from the local host. Have you tried accessing the website from the hosting server via the public address? Also, for testings sake, I would probably put the 0.0.0.0/0 rule back into place until you figure out the issue. Simplicity!
Hi Spencer, thanks for your response. I have changed the http rule to allow connections from anywhere, as you suggested, for testing. Anyway, from within the instance, I am able to connect via the public dns as well. But from outside, still not able to connect.
– user2606742
Sep 13 '14 at 20:06
Just an update, I also posted on aws forums, and was suggested to check if the instance is running a firewall, which it is, so I turned it off. But I still cant connect from outside. Also, I ran netstat -anp tcp | find ":80" and got this output, so it seems it is listening: C:UsersAdministrator>netstat -anp tcp | find ":80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 172.31.34.244:49397 199.193.196.18:80 CLOSE_WAIT TCP 172.31.34.244:50988 169.254.169.254:80 CLOSE_WAIT
– user2606742
Sep 13 '14 at 20:19
aha, I had only turned off the firewall for the domain profile, not for the public profile. Now it works!
– user2606742
Sep 13 '14 at 20:26
Just for completeness, I now turned the firewall back on, but created a rule to allow communication via port 80 for http and another port for my BOSH service.
– user2606742
Sep 13 '14 at 20:32
add a comment |
- Create a second instance on the same subnet and on the same security group and see if you can access the http server. If so that points to security group or ACL issues. If not, then
- Check if the http server accepts connections on 0.0.0.0/0 or only 127.0.0.1 (localhost). One allows it to accept only local connections while other allows it to accept incoming connections.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f811124%2fcant-get-http-connection-to-amazon-web-services-ec2-windows-server-2012-instanc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sounds like Apache may be configured to only accept connections from the local host. Have you tried accessing the website from the hosting server via the public address? Also, for testings sake, I would probably put the 0.0.0.0/0 rule back into place until you figure out the issue. Simplicity!
Hi Spencer, thanks for your response. I have changed the http rule to allow connections from anywhere, as you suggested, for testing. Anyway, from within the instance, I am able to connect via the public dns as well. But from outside, still not able to connect.
– user2606742
Sep 13 '14 at 20:06
Just an update, I also posted on aws forums, and was suggested to check if the instance is running a firewall, which it is, so I turned it off. But I still cant connect from outside. Also, I ran netstat -anp tcp | find ":80" and got this output, so it seems it is listening: C:UsersAdministrator>netstat -anp tcp | find ":80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 172.31.34.244:49397 199.193.196.18:80 CLOSE_WAIT TCP 172.31.34.244:50988 169.254.169.254:80 CLOSE_WAIT
– user2606742
Sep 13 '14 at 20:19
aha, I had only turned off the firewall for the domain profile, not for the public profile. Now it works!
– user2606742
Sep 13 '14 at 20:26
Just for completeness, I now turned the firewall back on, but created a rule to allow communication via port 80 for http and another port for my BOSH service.
– user2606742
Sep 13 '14 at 20:32
add a comment |
Sounds like Apache may be configured to only accept connections from the local host. Have you tried accessing the website from the hosting server via the public address? Also, for testings sake, I would probably put the 0.0.0.0/0 rule back into place until you figure out the issue. Simplicity!
Hi Spencer, thanks for your response. I have changed the http rule to allow connections from anywhere, as you suggested, for testing. Anyway, from within the instance, I am able to connect via the public dns as well. But from outside, still not able to connect.
– user2606742
Sep 13 '14 at 20:06
Just an update, I also posted on aws forums, and was suggested to check if the instance is running a firewall, which it is, so I turned it off. But I still cant connect from outside. Also, I ran netstat -anp tcp | find ":80" and got this output, so it seems it is listening: C:UsersAdministrator>netstat -anp tcp | find ":80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 172.31.34.244:49397 199.193.196.18:80 CLOSE_WAIT TCP 172.31.34.244:50988 169.254.169.254:80 CLOSE_WAIT
– user2606742
Sep 13 '14 at 20:19
aha, I had only turned off the firewall for the domain profile, not for the public profile. Now it works!
– user2606742
Sep 13 '14 at 20:26
Just for completeness, I now turned the firewall back on, but created a rule to allow communication via port 80 for http and another port for my BOSH service.
– user2606742
Sep 13 '14 at 20:32
add a comment |
Sounds like Apache may be configured to only accept connections from the local host. Have you tried accessing the website from the hosting server via the public address? Also, for testings sake, I would probably put the 0.0.0.0/0 rule back into place until you figure out the issue. Simplicity!
Sounds like Apache may be configured to only accept connections from the local host. Have you tried accessing the website from the hosting server via the public address? Also, for testings sake, I would probably put the 0.0.0.0/0 rule back into place until you figure out the issue. Simplicity!
answered Sep 13 '14 at 5:25
Spencer5051Spencer5051
30315
30315
Hi Spencer, thanks for your response. I have changed the http rule to allow connections from anywhere, as you suggested, for testing. Anyway, from within the instance, I am able to connect via the public dns as well. But from outside, still not able to connect.
– user2606742
Sep 13 '14 at 20:06
Just an update, I also posted on aws forums, and was suggested to check if the instance is running a firewall, which it is, so I turned it off. But I still cant connect from outside. Also, I ran netstat -anp tcp | find ":80" and got this output, so it seems it is listening: C:UsersAdministrator>netstat -anp tcp | find ":80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 172.31.34.244:49397 199.193.196.18:80 CLOSE_WAIT TCP 172.31.34.244:50988 169.254.169.254:80 CLOSE_WAIT
– user2606742
Sep 13 '14 at 20:19
aha, I had only turned off the firewall for the domain profile, not for the public profile. Now it works!
– user2606742
Sep 13 '14 at 20:26
Just for completeness, I now turned the firewall back on, but created a rule to allow communication via port 80 for http and another port for my BOSH service.
– user2606742
Sep 13 '14 at 20:32
add a comment |
Hi Spencer, thanks for your response. I have changed the http rule to allow connections from anywhere, as you suggested, for testing. Anyway, from within the instance, I am able to connect via the public dns as well. But from outside, still not able to connect.
– user2606742
Sep 13 '14 at 20:06
Just an update, I also posted on aws forums, and was suggested to check if the instance is running a firewall, which it is, so I turned it off. But I still cant connect from outside. Also, I ran netstat -anp tcp | find ":80" and got this output, so it seems it is listening: C:UsersAdministrator>netstat -anp tcp | find ":80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 172.31.34.244:49397 199.193.196.18:80 CLOSE_WAIT TCP 172.31.34.244:50988 169.254.169.254:80 CLOSE_WAIT
– user2606742
Sep 13 '14 at 20:19
aha, I had only turned off the firewall for the domain profile, not for the public profile. Now it works!
– user2606742
Sep 13 '14 at 20:26
Just for completeness, I now turned the firewall back on, but created a rule to allow communication via port 80 for http and another port for my BOSH service.
– user2606742
Sep 13 '14 at 20:32
Hi Spencer, thanks for your response. I have changed the http rule to allow connections from anywhere, as you suggested, for testing. Anyway, from within the instance, I am able to connect via the public dns as well. But from outside, still not able to connect.
– user2606742
Sep 13 '14 at 20:06
Hi Spencer, thanks for your response. I have changed the http rule to allow connections from anywhere, as you suggested, for testing. Anyway, from within the instance, I am able to connect via the public dns as well. But from outside, still not able to connect.
– user2606742
Sep 13 '14 at 20:06
Just an update, I also posted on aws forums, and was suggested to check if the instance is running a firewall, which it is, so I turned it off. But I still cant connect from outside. Also, I ran netstat -anp tcp | find ":80" and got this output, so it seems it is listening: C:UsersAdministrator>netstat -anp tcp | find ":80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 172.31.34.244:49397 199.193.196.18:80 CLOSE_WAIT TCP 172.31.34.244:50988 169.254.169.254:80 CLOSE_WAIT
– user2606742
Sep 13 '14 at 20:19
Just an update, I also posted on aws forums, and was suggested to check if the instance is running a firewall, which it is, so I turned it off. But I still cant connect from outside. Also, I ran netstat -anp tcp | find ":80" and got this output, so it seems it is listening: C:UsersAdministrator>netstat -anp tcp | find ":80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 172.31.34.244:49397 199.193.196.18:80 CLOSE_WAIT TCP 172.31.34.244:50988 169.254.169.254:80 CLOSE_WAIT
– user2606742
Sep 13 '14 at 20:19
aha, I had only turned off the firewall for the domain profile, not for the public profile. Now it works!
– user2606742
Sep 13 '14 at 20:26
aha, I had only turned off the firewall for the domain profile, not for the public profile. Now it works!
– user2606742
Sep 13 '14 at 20:26
Just for completeness, I now turned the firewall back on, but created a rule to allow communication via port 80 for http and another port for my BOSH service.
– user2606742
Sep 13 '14 at 20:32
Just for completeness, I now turned the firewall back on, but created a rule to allow communication via port 80 for http and another port for my BOSH service.
– user2606742
Sep 13 '14 at 20:32
add a comment |
- Create a second instance on the same subnet and on the same security group and see if you can access the http server. If so that points to security group or ACL issues. If not, then
- Check if the http server accepts connections on 0.0.0.0/0 or only 127.0.0.1 (localhost). One allows it to accept only local connections while other allows it to accept incoming connections.
add a comment |
- Create a second instance on the same subnet and on the same security group and see if you can access the http server. If so that points to security group or ACL issues. If not, then
- Check if the http server accepts connections on 0.0.0.0/0 or only 127.0.0.1 (localhost). One allows it to accept only local connections while other allows it to accept incoming connections.
add a comment |
- Create a second instance on the same subnet and on the same security group and see if you can access the http server. If so that points to security group or ACL issues. If not, then
- Check if the http server accepts connections on 0.0.0.0/0 or only 127.0.0.1 (localhost). One allows it to accept only local connections while other allows it to accept incoming connections.
- Create a second instance on the same subnet and on the same security group and see if you can access the http server. If so that points to security group or ACL issues. If not, then
- Check if the http server accepts connections on 0.0.0.0/0 or only 127.0.0.1 (localhost). One allows it to accept only local connections while other allows it to accept incoming connections.
answered Jun 24 '17 at 2:40
PerennialPerennial
815
815
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f811124%2fcant-get-http-connection-to-amazon-web-services-ec2-windows-server-2012-instanc%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