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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:39:42+00:00 2026-06-03T18:39:42+00:00

Following this guide: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide I was not able to configure a Hello World WSGI

  • 0

Following this guide:

http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

I was not able to configure a “Hello World” WSGI application (I did not mount at docroot and did not delegate to daemon)
on my ubuntu squeeze. Python version is 2.6.5.
I believe mod_wsgi is installed correctly.
Here is what I did:

  • Created a user /home/wsgitest (I know we are not supposed to do this but it’s just for testing).
  • Added the user to group www-data, which is what apache2 runs under:

    groups wsgitest
    wsgitest : wsgitest www-data
    

    As wsgitest, added permissions to read the folder explicitly:

    chmod -R g+rx wsgitest
    
  • Created a WSGI Application Script File with the exact same contents from the guide:

    ls -la /home/wsgitest/
    (...)
    -rw-r--r-- 1 wsgitest wsgitest  277 May  7 17:11 application.wsgi
    
  • Created an application config file:

    cat /etc/apache2/sites-available/application.conf 
    <VirtualHost *:80>
      WSGIScriptAlias /application /home/wsgitest/application.wsgi
      <Directory /home/wsgitest>
        Order allow,deny
        Allow from all
      </Directory>
    </VirtualHost>
    

(File belongs to root:root)

  • Enabled the site:

    ls -la /etc/apache2/sites-enabled/
    (..)
    lrwxrwxrwx 1 root root   35 May  9 15:29 application.conf -> ../sites-available/application.conf
    
  • Restarted apache2 and went to the following address:

    <ip-address>/application
    <ip-address>/application/
    

which gives 404.

  • Disabled the site and put the follwing at bottom of file /etc/apache2/apache2.conf :

    <Directory /home/wsgitest>
      Order allow,deny
      Allow from all
    </Directory>        
    WSGIScriptAlias /application /home/wsgitetst/application.wsgi
    
  • Restarted apache and tried to navigate again, no changes.

  • Tried with lynx and localhost, no changes.

  • Enabled logging info level in apache2. The /var/log/apache2 access log tells me that the request is answered with “404 503”,
    And this is from error.log:

    [Wed May 09 15:39:28 2012] [info] mod_wsgi (pid=27914): Attach interpreter ''.
    (...) 
    [Wed May 09 15:39:32 2012] [error] [client <ip>] File does not exist: /var/www/application
    (...)
    [Wed May 09 15:39:28 2012] [info] mod_wsgi (pid=27914): Cleanup interpreter ''.
    

The “other_vhosts_access.log” is empty.

To me it looks like the request never reaches the wsgi app or isn’t routed somehow…
Can anyone help me identify the problem?

  • 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-03T18:39:43+00:00Added an answer on June 3, 2026 at 6:39 pm

    Oh no. I did check everything 3 or 4 times but still there was a typo in there.
    As you can see in the declaration of WSGIScriptAlias from the apache2.conf edit (wsgitetst).
    The include config still won’t work, but that’s OK.

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

Sidebar

Related Questions

I'm following this guide: http://code.google.com/intl/it-IT/apis/documents/docs/2.0/developers_guide_java.html I just need to retrieve a token and use
I'm trying to import the ZXing project in Eclipse, http://code.google.com/p/zxing/ following this guide http://knol.google.com/k/alec-go/modifying-the-android-barcode-scanner/2vd5zn6va2fqd/2#
http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html I am following this as a guide to install subversion. The tutorial at
I am following this tutorial https://developer.android.com/guide/tutorials/views/hello-tabwidget.html and have completed it. Now I would actually
I'm following this guide here: http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/09/16/integrating-structuremap-and-nhibernate-with-wcf.aspx And has now come to the end of
Attempting to follow the directions as specified on http://code.google.com/p/gears/wiki/BuildingGearsForWindows my attempts are failing at
I recently followed this tutorial on Google Cloud SQL and GWT: http://code.google.com/apis/sql/docs/developers_guide_java.html I deployed
I was playing around with this code. http://programmersvoice.com/tag/code And I noticed that the following
I am following this guide to optimize the YSlow Grade. http://aciddrop.com/2008/01/21/boost-your-website-load-time-with-3-lines-of-code/ I checked in
I have created bg3.9.png image following this tutorial http://developer.android.com/guide/developing/tools/draw9patch.html but when i put it

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.