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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:35:33+00:00 2026-06-10T13:35:33+00:00

I am working on a small web dashboard -project that has backend implemented with

  • 0

I am working on a small web dashboard -project that has backend implemented with python’s web.py framework.

The dashboard has all sorts of widget’s on it, one of which also has its backend implemented using web.py. The problem is that only one of the designated application entry points seem to function at a time. Both the dashboard’s and the widget’s apache configurations are placed in the same file. The original configuration file (that actually worked for a while) in apache2/conf.d/ looks like this:

WSGIPythonPath /var/www/ProjectDASHBOARD/api
WSGIScriptAlias /ProjectDASHBOARD/api /var/www/ProjectDASHBOARD/api/api.py/

AddType text/html .py

<Directory /var/www/ProjectDASHBOARD/api/>
    Order deny,allow
    Allow from all
</Directory>


# Stuff for graphingwidget

WSGIPythonPath /var/www/ProjectDASHBOARD/widgets/graphingwidget/api
WSGIScriptAlias /ProjectDASHBOARD/widgets/graphingwidget/api /var/www/ProjectDASHBOARD/widgets/graphingwidget/api/api.py/

AddType text/html .py

<Directory /var/www/ProjectDASHBOARD/widgets/graphingwidget/api/>
    Order deny,allow
    Allow from all
</Directory>

This alone does not work, there is also the next piece of code that is needed in both api.py files, checking their approriate paths and adding them if not found (excerpt from the widget’s file):

import web
import json
import sys

path = '/var/www/ProjectDASHBOARD/widgets/graphingwidget/api'
if path not in sys.path:
    sys.path.append(path)

A similiar check is done for the dashboard.

All of this indeed worked for a whole week, and then suddenly stopped working when trying to install from scratch, making it all the more confusing as to what is wrong. The error received when trying to access the api from a webpage is HTTP Error 500 Internal server error. Then after a few changes to the apache config file ONE of the api’s started working:

WSGIPythonPath /var/www/ProjectDASHBOARD/widgets/graphingwidget/api
WSGIPythonPath /var/www/ProjectDASHBOARD/api
WSGIScriptAlias /ProjectDASHBOARD/api /var/www/ProjectDASHBOARD/api/api.py/
WSGIScriptAlias /ProjectDASHBOARD/widgets/graphingwidget/api /var/www/ProjectDASHBOARD/widgets/graphingwidget/api/api.py/

AddType text/html .py

<Directory /var/www/ProjectDASHBOARD/api/>
    Order deny,allow
    Allow from all
</Directory>


# Stuff for graphingwidget

AddType text/html .py

<Directory /var/www/ProjectDASHBOARD/widgets/graphingwidget/api/>
    Order deny,allow
    Allow from all
</Directory>

Basically just moved the paths to the beginning of the file, and switched the order around a little bit, and suddenly one of api’s start to work again. Changing the order a little bit then makes the other api work and brakes the other one. I don’t remember the correct order for the paths, but the point is that it used to work well, then it stopped working when installed to a fresh identical virtual machine, and only one of the api’s work depending on the order of the paths.

Initially the configs were in different files, but it didn’t work like that. Had all kinds of errors like “Target WSGI script ‘path’ cannot be loaded as Python module.”, and only started to work when they were moved to the same file.

Im thinking here that somehow one of the paths is overwritten by the other, or that all this time the whole config has been fundamentally wrong and has been working only by sheer luck (for a whole week, without issues…)

Any clues as to what is wrong?

  • 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-10T13:35:35+00:00Added an answer on June 10, 2026 at 1:35 pm

    Sorry for the late return, but the case was basically had to carefully RTFM at http://webpy.org/install#apachemodwsgi and make use of .htaccess files.

    No idea really why the solution in the original question worked as far as it did.

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

Sidebar

Related Questions

Hi i developed small web application, in that all the functionality working fine but
I'm working on a small C#/WPF application that interfaces with a web service implemented
I am working on one small project - web site. There are gallery, user
I am working on a small web project using Flask/Python. This is a simple
I am working on a small web project and I'm a little confused abour
I’m currently working on a small web app that allows people to search for
I am working on small python payroll project where you enter employee name, wage,
I have a small Python web application using the Cherrypy framework. I am by
Currently I'm working on a small program that reads large files and sorts them.
For a personal project, I'm working on a small web-based game. I have a

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.