Deploying the application on the Apache HTTP Server
Apache HTTP Server is an open source server under the Apache projects that can run on Windows and UNIX-based platforms to provide an efficient, simple, and flexible HTTP server for various applications.
Before anything else, download the latest server from https://httpd.apache.org/download.cgi and unzip the file to the production server’s installation directory. Then, download the latest Microsoft Visual C++ Redistributable from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist, install it, and run the server through the httpd.exe
file of its /
bin
folder.
After the installation, follow these steps to deploy our application to the Apache HTTP Server:
- Build your Flask application, as we did with our Online Grocery application, run it using the built-in WSGI server, and refine the components using
pytest
testing. - Next, install the
mod_wsgi
module, which enables the Apache HTTP Server’...