From 7ff0c5743ac8000980d5760f3baf9b19825d4efd Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 3 Mar 2010 15:14:00 +0000 Subject: doc: Add WSGI configuration from euth Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5747 ce84e21b-d406-0410-9b95-82705330c041 --- doc/server/reports/dynamic.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'doc') 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" + + Order deny,allow + Allow from all + AllowOverride None + + # 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 -- cgit v1.2.3-1-g7c22