Python 入門:Deploy Flask app to Apache – mod_wsgi


  1. Download and install Apache24 from https://www.apachelounge.com/
  2. Save to C:\apache24
  3. Download Build Tools for Visual Studio 2019 from https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
  4. Install mod_wsgi: pip install mod_wsgi
  5. Run mod-wsgi-express module-config, edit Apache24/conf/httpd.conf
  6. Edit Apache24/conf/extra/httpd-vhosts.conf
  7. Prepare your flask app, and create app.wsgi file.
  8. Run the apache web server, and test it with your browser

無法複製此頁面的內容