Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7785851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:19:19+00:00 2026-06-01T20:19:19+00:00

After following this tutorial to setup an EC2 instance for a Django app, I

  • 0

After following this tutorial to setup an EC2 instance for a Django app, I can’t connect to the application. Any help debugging, would be greatly appreciated.

Steps followed after setting up EC2 instance:

  1. sudo aptitude install python-django
  2. sudo aptitude install mysql-server
  3. sudo aptitude install python-mysqldb
  4. sudo aptitude install libapache2-mod-wsgi
  5. mkdir srv
  6. cd srv
  7. django-admin startproject mysite
  8. sudo vim /etc/apache2/sites-available/mysite.com

    NameVirtualHost *:80
    
    <VirtualHost *:80>
    
        ServerName mysite.com
        ServerAlias www.mysite.com
        WSGIScriptAlias / /home/demo/public_html/mysite.com/mysite.wsgi
    </VirtualHost>
    
  9. sudo vim /home/demo/public_html/mysite.com/mysite.wsgi

    import os
    import sys
    
    sys.path.append('/home/demo/public_html/mysite.com/')
    
    os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
    
    import django.core.handlers.wsgi
    
    application = django.core.handlers.wsgi.WSGIHandler()
    
  10. sudo a2ensite mysite.com

  11. sudo /etc/init.d/apache2 reload

For my host records on my URL:

    @  to the Private IP from Amazon as an A Record
    www to the Private IP from Amazon as an A record

The result is that when I enter the IP address, myurl.com, and http://www.myurl.com all are unable to connect to the server.

Any ideas on how to debug this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:19:20+00:00Added an answer on June 1, 2026 at 8:19 pm

    Don’t use the private IP for your instance, that’s only useful if you’re accessing your instance from within EC2, instead use the public IP in your hosts file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my setup is ubuntu - gitolite - msysgit. After following this tutorial : https://sites.google.com/site/senawario/home/gitolite-tutorial
I am following along with this Django blog tutorial and can not get the
Following this tutorial i'm developing a web application using symfony authentication/authorization architecture. After designing
After following this MVC 4 tutorial series I was trying some of the stuff
After following the steps outline in this Fluent NHibernate tutorial I am stuck on
After hours I am giving up on debugging the following: This works: URL[] urls
I'm following this tutorial (seems good) for Rails. After I run ruby script/generate scaffold
I am following this tutorial to build my first Java 3D application. I included
I'm following this tutorial for using OpenAL in C++: http://enigma-dev.org/forums/index.php?topic=730.0 As you can see
I followed this tutorial exactly and received the following error after trying to upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.