Jump to content

[Solved] Request for WSGI Control


ujcis

Recommended Posts

WSGI control access has been enabled on the domain alutagram.helioho.st. To restart your Flask app and load new code changes in simply edit /home/ujcis.helioho.st/alutagram.helioho.st/flask.wsgi. Adding a blank line, removing a blank line, adding a space, or removing a space are examples of editing the file. As long as the last modified timestamp changes it will clear the server cache. Let us know if you run into any issues.

Link to comment
Share on other sites

Thanks, but I still have some challenges. I'm not really sure how python/flask works on additional domains. My new alutagram.helioho.st folder contains a cgi-bin folder and an index.html file. 

Things I've tried to get Flask running:

1. I've tried making the required files from the tutorial: https://wiki.helionet.org/tutorials/flask

2. I followed the tutorial on https://wiki.helionet.org/tutorials/python and made the test.py executable file in the new cgi-bin folder. 

Result:

Flask wasn't running so I made a .htaccess file with the following content in the alutagram.helioho.st folder: 

`

Options +ExecCGI

RewriteEngine On

RewriteBase /

RewriteRule ^(media/.*)$ - [L]

RewriteRule ^(admin_media/.*)$ - [L]

RewriteRule ^(flask\.wsgi/.*)$ - [L]

RewriteRule ^(.*)$ flask.wsgi/$1 [QSA,PT,L]

The HTACCESS file causes an Internal Server Error, but nothing shows in my error_log

Link to comment
Share on other sites

48 minutes ago, ujcis said:

1. I've tried making the required files from the tutorial: https://wiki.helionet.org/tutorials/flask

This guide is for Flask which uses WSGI.

48 minutes ago, ujcis said:

2. I followed the tutorial on https://wiki.helionet.org/tutorials/python and made the test.py executable file in the new cgi-bin folder. 

This guide is for Python CGI.

CGI and WSGI are two very different mechanisms for running Python code. Which are you trying to do exactly because they aren't the same thing, and it was never intended to do both guides at the same time?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...