diff --git a/examples/apache.conf b/examples/apache.conf index 01e2e403..e016422c 100644 --- a/examples/apache.conf +++ b/examples/apache.conf @@ -6,7 +6,7 @@ Define servername api.devicetag.io # The domain used to access the server Define appdir /home/devicetag/sites/${servername}/source/ # The path where the app directory is. Apache must have access to this folder. -Define wsgipath ${appdir}/wsgi.wsgi +Define wsgipath ${appdir}/wsgi.py # The location of the .wsgi file Define pyvenv ${appdir}../venv/ # The path where the virtual environment is (the folder containing bin/activate) diff --git a/examples/wsgi.py b/examples/wsgi.py new file mode 100644 index 00000000..d32cf92e --- /dev/null +++ b/examples/wsgi.py @@ -0,0 +1,6 @@ +""" +An exemplifying Apache python WSGI to a Devicehub app with a dispatcher. +""" +from ereuse_devicehub.dispatchers import PathDispatcher + +application = PathDispatcher()