diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2010-03-03 15:14:00 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-03-03 15:14:00 +0000 |
commit | 7ff0c5743ac8000980d5760f3baf9b19825d4efd (patch) | |
tree | dc60be77b170db68b034b6c2231f1312407a4c13 /doc | |
parent | 8c1d6f5f41aa82a6bb1da8870f38dcd12c599830 (diff) | |
download | bcfg2-7ff0c5743ac8000980d5760f3baf9b19825d4efd.tar.gz bcfg2-7ff0c5743ac8000980d5760f3baf9b19825d4efd.tar.bz2 bcfg2-7ff0c5743ac8000980d5760f3baf9b19825d4efd.zip |
doc: Add WSGI configuration from euth
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5747 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'doc')
-rw-r--r-- | doc/server/reports/dynamic.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/server/reports/dynamic.txt b/doc/server/reports/dynamic.txt index 7df95cbcb..88319d263 100644 --- a/doc/server/reports/dynamic.txt +++ b/doc/server/reports/dynamic.txt @@ -96,6 +96,29 @@ the contents are accessible on the virtual host at ``/site_media/``. At this point you should be able to point your web browser to the virtualhost you created and see the new reports +Example WSGI configuration +^^^^^^^^^^^^^^^^^^^^^^^^^^ + +entry.wsgi:: + + import os, sys + os.environ['DJANGO_SETTINGS_MODULE'] = 'Bcfg2.Server.Reports.settings' + import django.core.handlers.wsgi + application = django.core.handlers.wsgi.WSGIHandler() + +Apache conf:: + + Alias /bcfg2reports/site_media "/path/to/site_media" + <Directory /path/to> + Order deny,allow + Allow from all + AllowOverride None + </Directory> + # If Python is installed in a non-standard prefix: + #WSGIPythonHome /python/prefix + #WSGIPythonPath /python/prefix/lib/python2.6/site-packages + WSGIScriptAlias /bcfg2reports "/another/path/to/entry.wsgi" + .. _alternative-databases: Notes on Alternative Databases |