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 7751531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:34:20+00:00 2026-06-01T11:34:20+00:00

im configuring my EC2 instance (amazon web services) on an ubuntu server, to test

  • 0

im configuring my EC2 instance (amazon web services) on an ubuntu server, to test django(python)

I have python installed, and the apache server,

I have the It works! [apache] page on my url address, index.html

now im configuring the wsgi and mod_wsgi [for python and django],

im following this info to configure wsgi:

deploy python wsgi app tutorial

but when I try the Basic Hello World WSGI Configuration

import os 
import sys 

sys.path.append('/srv/www/cucus/application') 

os.environ['PYTHON_EGG_CACHE'] = '/srv/www/cucus/.python-egg' 

def application(environ, start_response):
    status = '200 OK'
    output = 'Hello World!'
    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)

    return [output]

and go to mysite/application/application.wsgi

http://ec2-107-20-20-19.compute-1.amazonaws.com/cucus/application/application.wsgi

in my browser,
i see the code for the page, but not the rendered “hello world”

what im i missing?

do I need to configure the virtual hosts for ubuntu?, even im using just one site?

thanks!

  • 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-01T11:34:21+00:00Added an answer on June 1, 2026 at 11:34 am

    Have you read any of the actual mod_wsgi documentation or watch the presentation about it:

    http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide
    http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations

    You either never set up WSGIScriptAlias or didn’t enable the site for Apache properly to read it or didn’t restart Apache.

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

Sidebar

Related Questions

I'm configuring Django on Apache under Ubuntu 11.04. My media files is not available.
I have a three-tier Windows-based web application bundled into 3 AMIs on Amazon EC2
I am configuring a new environment to run several intranet web applications. I have
I'm looking to use NorthScale's Memcached Server with Amazon EC2, I've launched a new
I have a problem configuring BASIC-auth in jetty here's my web.xml <security-constraint> <web-resource-collection> <web-resource-name>resources</web-resource-name>
I am configuring the env on Vista. I have jdk-6u30 and eclipse-jee-indigo-SR1-win32 installed on
I am configuring my Apache/2.2.17 server with PHP 5.3.5. My goal is to create
I am configuring mysql for my server, but I have one question: Is it
I'm configuring an Nginx server with both http and https services. I'm trying to
While configuring the security constraints for a web-module's roles in J2EE application I'm having

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.