ujcis Posted 6 hours ago Share Posted 6 hours ago Hi. I'd like to request WSGI control for my newly added domain alutagram.helioho.st. Thanks! Quote Link to comment Share on other sites More sharing options...
KazVee Posted 5 hours ago Share Posted 5 hours ago This support request is being escalated to our root admins. Quote Link to comment Share on other sites More sharing options...
Krydos Posted 2 hours ago Share Posted 2 hours ago 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. Quote Link to comment Share on other sites More sharing options...
ujcis Posted 1 hour ago Author Share Posted 1 hour ago 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 Quote Link to comment Share on other sites More sharing options...
Krydos Posted 20 minutes ago Share Posted 20 minutes ago 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.