aboutsummaryrefslogtreecommitdiff
path: root/portal-gui/apache/rpki.wsgi.in
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2011-01-22 00:43:47 +0000
committerMichael Elkins <melkins@tislabs.com>2011-01-22 00:43:47 +0000
commit681aa5fc98d7d7dca3b9c6af88424406310187ce (patch)
tree2e645cf075389d185343c6b00c57ebe6b07dfbd5 /portal-gui/apache/rpki.wsgi.in
parent1b55e2887afa1270635f9c9a1836d539e11144fa (diff)
integrate portal-gui into toplevel configure script; remove $top/portal-gui/build.sh as a result
remove helper script, and use @PYTHON@ configure variable to substitute instead rename django.wsgi => rpki.wsgi rename zrpki.conf => rpki.conf for apache configuration svn path=/configure; revision=3629
Diffstat (limited to 'portal-gui/apache/rpki.wsgi.in')
-rw-r--r--portal-gui/apache/rpki.wsgi.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/portal-gui/apache/rpki.wsgi.in b/portal-gui/apache/rpki.wsgi.in
new file mode 100644
index 00000000..c50fa6b7
--- /dev/null
+++ b/portal-gui/apache/rpki.wsgi.in
@@ -0,0 +1,30 @@
+# $Id$
+"""
+Copyright (C) 2010 SPARTA, Inc. dba Cobham Analytic Solutions
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND SPARTA DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL SPARTA BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+
+This is an example wsgi application for use with mod_wsgi and apache.
+
+"""
+
+import os
+import sys
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'rpkigui.settings'
+
+sys.path.append('@INSTDIR@')
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()