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.

Django webservices is running on port 8000 (pyhon manage.py runserver 0.0.0.0:8000)

I am able to access using , https://ec2-72-44-51-113.compute-1.amazonaws.com/admin/

but if I specify port in url, https://ec2-72-44-51-113.compute-1.amazonaws.com:8000/admin/ I am not able to access the portal..

What could be possible mistakes ?

Best Regards, Ashish

share|improve this question

2 Answers 2

If you want to reach port 8000 from outside AWS, you must add it as a permitted port in your AWS security group.

share|improve this answer
    
port 80, 443, 8000, 8001 all are all allowed in security group for my instance.setting 22 (SSH) 0.0.0.0/0 Delete 443 (HTTPS) 0.0.0.0/0 Delete 8001 0.0.0.0/0 Delete 8002 0.0.0.0/0 Delete –  user158420 Feb 11 '13 at 1:34
    
is there any need of restart after adding new rule in security group settings or it gets effective on fly. –  user158420 Feb 11 '13 at 1:50

The first link you provide is 'https://...', so this would be accessing port 443 of the server. In order for this to work, there must be something (apache, nginx, pound, ...) proxying the requests through to the python process. It probably also means that it's hosting an SSL cert.

The second link is 'https://ec2-72-44-51-113.compute-1.amazonaws.com:8000/admin/', so you're trying to talk SSL to a HTTP server. You might try http://ec2-72-44-51-113.compute-1.amazonaws.com:8000/admin/ - note it's HTTP not HTTPS.

share|improve this answer

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.