Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to run basic Django app on Amazon like: managy.py runserver 80

It starts running, but I can't connect to Django from browser to this port, FF can't connect. My Security Groups are set up ok, since I can connect to Apache from outside, if I run it.

Is there a way to use django runserver on Amazon? Or more production-like stack, with Apache, is strongly adviced?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

that will only bind it to 127.0.0.1:80. You need to run the following

./manage.py runserver 0.0.0.0:80

That will make it work via the all ips on the server which you will be able to hit from your location if your security groups are open for port 80

share|improve this answer
    
That was it. Thanks. –  PHP thinker Sep 9 '11 at 13:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.