ubuntu - Unable to access web2py server running in EC2 instance -
i set web2py server on amazon ec2 instance (ubuntu), can't reach though on personal machine. can reach apache it. here steps took:
this 1 step deployment web2py website
wget http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh chmod +x setup-web2py-ubuntu.sh sudo ./setup-web2py-ubuntu.sh
edited ec2 inbound traffic rules take traffic on port 8000 , 80
then run sudo python web2py.py , add together password when prompted , prints out it's running.
i take public dns server aws management console , append port(8000) domain name.
i checked i'm listening on appropriate ports.
i tried start web2py.py with
sudo python web2py.py --ip 0.0.0.0 -p 8000
in order listening on available ips on port 8000. tells me check 127.0.0.1:8000. wonder if it's still not picking requests public ip ec2 gives you.
it's simple missed, thanks!
to troubleshoot this, install lynx text-based browser on ec2 machine, while ssh'ed machine seek lynx http://127.0.0.1:8000
. give thought whether problem in network / security configuration or web2py server configuration.
ubuntu amazon-web-services amazon-ec2 web2py
No comments:
Post a Comment