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

  • Home
  • SEARCH
  • 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 5990381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:14:10+00:00 2026-05-22T23:14:10+00:00

Anybody know how to deploy a simple Flask application on Webfaction? I know Webfaction

  • 0

Anybody know how to deploy a simple Flask application on Webfaction?
I know Webfaction support mod_wsgi and I read the guide on the Flask site but still I can’t make my app working. Anybody have a working configuration?

UPDATE to answer a comment by Graham Dumpleton.

I get a 500 Internal server error. Apache does not show any error in the logs. The WSGI script is executed and seems to create the application correctly, but I keep getting a 500 error.

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-05-22T23:14:11+00:00Added an answer on May 22, 2026 at 11:14 pm

    I got it working with the following procedure:

    • create and app named ‘myapp’ of type mod_wsgi 3.3/Python 2.7. Webfaction will create the following folders:

      myapp
           |- apache2
           |- htdocs
      
    • Webfaction will also automatically create a simple script index.py in your htdocs directory. Check if the sample script work visiting the root of your newly created application (to do thin on Webfaction you need to “mount” the app on a website). If it’s all OK modify the script deleting the content and adding:

      from myapp import app as application
      
    • In apache2/conf/httpd.conf add the follwing lines:

      WSGIPythonPath /home/username/webapps/myapp/htdocs/
      #If you do not specify the next directive the app *will* work but you will
      #see index.py in the path of all subdir
      WSGIScriptAlias / /home/username/webapps/myapp/htdocs/index.py
      
      
      <Directory /home/username/webapps/myapp/htdocs>
          AddHandler wsgi-script .py
          RewriteEngine on
          RewriteBase /
          WSGIScriptReloading On
      </Directory>
      
    • Restart apache2

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

Sidebar

Related Questions

Does anybody know how to (easily) rename an existing grails application? I'm running into
anybody know how can i parse a csv or xml document with multiple addresses,
Does anybody know of a tool that I could use with a C# application
Anybody know how can I exclude only the first letter of a get_the_content() function
Does anybody know, where I can find the original image-files (button backgrounds, menu icons,
Does anybody know a good reference I can use to prepare for interview questions/tests
Does anybody know sources in internet where described how to build an android application
Anybody know of a way to copy a file from path A to path
Anybody know what my DLLImport statement should look like here: extern C __declspec(dllexport) long
Anybody know how to get gmail's OpenID working? All I find is this http://openid-provider.appspot.com/

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.