stillcharge.blogg.se

Download apache web server for windows 10
Download apache web server for windows 10














def application(environ, start_response): Then open this file in your editor, and add the below code to the file. Your first Python web ApplicationĬreate a file named wsgi_app.py inside of your wsgi_app directory. WSGIScriptAlias /wsgi "C:/wsgi_app/wsgi_app.py"Īgain, for simplicity, you may want to find the section in the file, where the other Directory settings are located, and then place the above below the block. But you should also create a directory block for your wsgi_app directory, both demonstrated below. The below would direct requests for /wsgi to a file placed in your wsgi_app directory. You should now create a WSGI script alias, this is used to direct requests to your new application. Otherwise, simply place it at the end of the file, so that you can easily find it later.

download apache web server for windows 10

You can do a search for LoadModule, and place it directly below any other modules that you load. Open the file with your favorite editor, and insert the below: LoadModule wsgi_module modules/mod_wsgi.so

DOWNLOAD APACHE WEB SERVER FOR WINDOWS 10 SOFTWARE

So you will have to find your nf file, located in: C:\Program Files\Apache Software Foundation\Apache2.2\conf The nest step is to configure Apache to run a basic test application from the directory you just made. The final path to your new directory should look like: c:\wsgi_app Configure Mod_wsgi in Apache on Windows

download apache web server for windows 10

Of cause this depends on where you installed Apache, but as an example this could be: C:\Program Files\Apache Software Foundation\Apache2.2\modulesįor simplicity, create a new directory outside your htdocs, simply name the new directory wsgi_app for now, and place it in c:

download apache web server for windows 10

Link to Mod_wsgi's GitHub page: Installing Mod_wsgi for Apache on WindowsĪpache2.2 needs mod_wsgi-win32-ap22py27-3.3.so which you should rename to mod_wsgi.so and place into your apache modules directory. Windows Binary downloads are available from: To get started you first need to download the files corresponding to your version of Apache. This tutorial deals with the installation of Mod_wsgi on Windows, which is a module to host python applications.














Download apache web server for windows 10