Next we’ll need to ensure this wsgi.py with a WSGI application objectĮxists. The piece ensures that Apache can access your wsgi.py Import on the Python path in other words, that import mysite works. The WSGIPythonPath line ensures that your project package is available for Virtual environment guide for more details. If you install your project’s Python dependencies inside a virtual environment, add the path using WSGIPythonHome. This tells Apache to serveĪny request below the given URL using the WSGI application defined in that Your project package ( mysite in this example). Location of a “WSGI file” – see below – on your system, usually inside of Serve your application at ( / indicates the root url), and the second is the The first bit in the WSGIScriptAlias line is the base URL path you want to WSGIScriptAlias / /path/to//mysite/wsgi.py WSGIPythonHome /path/to/venv WSGIPythonPath /path/to/ Require all granted
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |