apache - EC2 port 80: Connection refused -
i'm doing request ec2 instance, i'm getting following error:
80: connection refused
these security rules of instance:
ports protocol source launch-wizard-1 80 tcp 0.0.0.0/0 ✔ 22 tcp 177.32.53.207/32 ✔
what's wrong these rules? why can't access port 80?
edit i attached apache conf file (/etc/apache2/apache2.conf) in url, since it's big post code here.
edit2 when run netstat -ntlp | grep listen this:
(no info read "-p": geteuid()=1000 should root.) tcp 0 0 0.0.0.0:22 0.0.0.0:* listen - tcp 0 0 127.0.0.1:3306 0.0.0.0:* listen - tcp6 0 0 :::80 :::* listen - tcp6 0 0 :::22 :::* listen
what source of connection request? attempting access instance outside of amazon or difference ec2 instance in same availability zone? supplying ip address or dns name argument connecting code?
keep in mind aws ec2 uses sdn (software defined networking) doesn't work quite classical tcp/ip routing may expecting using linux, or other oses, on bare metal systems (or on vms using more traditional networking).
ultimately want allocate "elastic ip" (eip) aws , bind web server instance. route requests ip address. (often you'd create dns entry, perhaps through amazon's "route53" service use name rather address).
it's possible instance within , outside network. have use amazon generated dns name then, because use split-horizon, clients correct (internal or external) ip address.
also have consider security settings on vpc (virtual private cloud) network(s) you've applied instance.
Comments
Post a Comment