...for production, I need to deploy the web service on Apache and use mod_wsgi as the gateway. I am confused as to how to do this. I know that I will need to create a custom template for Apache to know about my Flask web service. I'm not sure what that file would look like as far as the content. Do I define <location> or <virtualhost>. Has anyone deployed a Flask app or web service on Apache/mod_wsgi for production on SME 9.2
Thanks for chatting with me about this. To recap our conversation...
First, make certain the mod_wsgi.so is installed on the system. Yum can be used for this.
Second, create a custom template to load the mod_wsgi.so in Apache. This is a file that contains an Apache LoadModule directive. See the koozali docs as well as the Apache docs.
Finally, create a custom template to define an Apache Location. A location is part of a URL, such as a location “/status” that appears in a fully formed URL. E.g.
www.mydomain/status?p=now.
The Flask docs should contain examples of the details for telling Apache how to communicate with the Flask app via wsgi, which can then be adapted to the template system.